Skip to content
Browse files

Check against specific registry.

  • Loading branch information...
1 parent 287e573 commit 2ae865996b48983dd38b9b68d6820cf86b8d4cd9 @jnunemaker committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 spec/flipper_spec.rb
View
4 spec/flipper_spec.rb
@@ -21,8 +21,10 @@
describe ".register" do
it "adds a group to the group_registry" do
+ registry = Flipper::Registry.new
+ Flipper.groups = registry
group = Flipper.register(:admins) { |actor| actor.admin? }
- Flipper.groups.get(:admins).should eq(group)
+ registry.get(:admins).should eq(group)
end
it "raises exception if group already registered" do

0 comments on commit 2ae8659

Please sign in to comment.
Something went wrong with that request. Please try again.