examples/lib/micronaut/behaviour_example.rb in spicycode-micronaut-0.1.8.2 vs examples/lib/micronaut/behaviour_example.rb in spicycode-micronaut-0.1.8.3

- old
+ new

@@ -58,11 +58,11 @@ it "should add the third parameter to the metadata" do Micronaut::Behaviour.describe(Object, nil, 'foo' => 'bar') { }.metadata.should include({ "foo" => 'bar' }) end it "should add the caller to metadata" do - Micronaut::Behaviour.describe(Object) { }.metadata[:behaviour][:caller].should == "#{__FILE__}:#{__LINE__}" + Micronaut::Behaviour.describe(Object) { }.metadata[:behaviour][:caller].should include("#{__FILE__}:#{__LINE__}") end it "should add the the file_path to metadata" do Micronaut::Behaviour.describe(Object) { }.metadata[:behaviour][:file_path].should == __FILE__ end @@ -76,11 +76,11 @@ end it "should add file path and line number metadata for arbitrarily nested describes" do Micronaut::Behaviour.describe(Object) do Micronaut::Behaviour.describe("foo") do - Micronaut::Behaviour.describe(Object) { }.metadata[:behaviour][:caller].should == "#{__FILE__}:#{__LINE__}" + Micronaut::Behaviour.describe(Object) { }.metadata[:behaviour][:file_path].should == __FILE__ Micronaut::Behaviour.describe(Object) { }.metadata[:behaviour][:line_number].should == __LINE__ end end end @@ -214,6 +214,6 @@ pending "should run after(:each) when the example raises an Exception" end -end \ No newline at end of file +end