require'spec_helper'describeGroupsFinderdolet(:user){create:user}let!(:group){create:group}let!(:public_group){create:group,public: true}describe:executedoit'finds public group'dogroups=GroupsFinder.new.execute(user)expect(groups.size).toeq(1)expect(groups.first).toeq(public_group)endendend