Permalink
Browse files

Use Flipper.group shortcut

  • Loading branch information...
jnunemaker committed Aug 2, 2012
1 parent b605eb5 commit 287e57381f4c69ce5fa3bb403155de9dc51f195b
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/flipper/gates/group.rb
  2. +2 −2 spec/flipper/feature_spec.rb
@@ -21,7 +21,7 @@ def group_names
end
def groups
- group_names.map { |name| Flipper.groups.get(name) }.compact
+ group_names.map { |name| Flipper.group(name) }.compact
end
def protects?(thing)
@@ -12,8 +12,8 @@
let(:boolean_key) { Flipper::Gates::Boolean::Key }
let(:group_key) { Flipper::Gates::Group::Key }
- let(:admin_group) { Flipper.groups.get(:admins) }
- let(:dev_group) { Flipper.groups.get(:devs) }
+ let(:admin_group) { Flipper.group(:admins) }
+ let(:dev_group) { Flipper.group(:devs) }
let(:admin_thing) { double 'Non Flipper Thing', :admin? => true, :dev? => false }
let(:dev_thing) { double 'Non Flipper Thing', :admin? => false, :dev? => true }

0 comments on commit 287e573

Please sign in to comment.