Skip to content

Commit

Permalink
Use Flipper.group shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Aug 2, 2012
1 parent b605eb5 commit 287e573
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/flipper/gates/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions spec/flipper/feature_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 287e573

Please sign in to comment.