Skip to content

Commit

Permalink
Ensure group returns same instance
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Aug 2, 2012
1 parent e48ca14 commit a9ec907
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/flipper/dsl_spec.rb
Expand Up @@ -81,6 +81,10 @@ def feature(name)
it "returns group" do
subject.group(:admins).should eq(@group)
end

it "always returns same instance for same name" do
subject.group(:admins).should equal(subject.group(:admins))
end
end

context "for unregistered group" do
Expand Down

0 comments on commit a9ec907

Please sign in to comment.