examples/lib/micronaut/behaviour_example.rb in spicycode-micronaut-0.1.6 vs examples/lib/micronaut/behaviour_example.rb in spicycode-micronaut-0.1.6.1

- old
+ new

@@ -27,18 +27,18 @@ Micronaut::Behaviour.describe(Object) { }.name.should == 'Object' end end - describe '#described_type' do + describe '#describes' do it "should be the first parameter when it is a constant" do - Micronaut::Behaviour.describe(Object) { }.described_type.should == Object + Micronaut::Behaviour.describe(Object) { }.describes.should == Object end it "should be nil when the first parameter is a string" do - Micronaut::Behaviour.describe("i'm a computer") { }.described_type.should be_nil + Micronaut::Behaviour.describe("i'm a computer") { }.describes.should be_nil end end describe '#description' do @@ -166,10 +166,10 @@ describe Object, "describing nested behaviours" do describe "A sample nested describe", :just_testing => 'yep' do it "should set the described type to the constant Object" do - running_example.behaviour.described_type.should == Object + 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 \ No newline at end of file