examples/lib/micronaut/behaviour_example.rb in spicycode-micronaut-0.2.1.3 vs examples/lib/micronaut/behaviour_example.rb in spicycode-micronaut-0.2.1.4

- old
+ new

@@ -186,23 +186,27 @@ end end - describe Object, "describing nested behaviours" do + describe Object, "describing nested behaviours", :little_less_nested => 'yep' do - describe "A sample nested describe", :just_testing => 'yep' do + describe "A sample nested describe", :nested_describe => "yep" do it "should set the described type to the constant Object" do running_example.behaviour.describes.should == Object end it "should set the description to 'A sample nested describe'" do running_example.behaviour.description.should == 'A sample nested describe' end - it "should have :just_testing => 'yep' in the metadata" do - running_example.behaviour.metadata.should include(:just_testing => 'yep') + it "should have top level metadata from the behaviour and its ancestors" do + running_example.behaviour.metadata.should include(:little_less_nested => 'yep', :nested_describe => 'yep') + end + + it "should make the parent metadata available on the contained examples" do + running_example.metadata.should include(:little_less_nested => 'yep', :nested_describe => 'yep') end end end