require 'helper' describe Flipper::UI::Actions::GroupsGate do describe "GET /features/:feature/groups" do before do Flipper.register(:admins) { |user| user.admin? } get "features/search/groups" end after do Flipper.unregister_groups end it "responds with success" do last_response.status.should be(200) end it "renders add new group form" do last_response.body.should include('