Skip to content
Browse files

add spec to show that examples in a group share the same metadata[:ex…

…ample_group] hash
  • Loading branch information...
1 parent e99026f commit 37b53f3f997f4b79541945cafaee19ddbc103fbe @dchelimsky dchelimsky committed Apr 14, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 spec/rspec/core/metadata_spec.rb
View
7 spec/rspec/core/metadata_spec.rb
@@ -158,6 +158,13 @@ module Core
it "merges arbitrary options" do
mfe[:arbitrary].should == :options
end
+
+ it "points :example_group to the same hash object" do
+ a = metadata.for_example("foo", {})[:example_group]
+ b = metadata.for_example("bar", {})[:example_group]
+ a[:description] = "new description"
+ b[:description].should == "new description"
+ end
end
describe "apply_condition" do

0 comments on commit 37b53f3

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