examples/lib/micronaut/behaviour_example.rb in spicycode-micronaut-0.2.1.6 vs examples/lib/micronaut/behaviour_example.rb in spicycode-micronaut-0.2.2

- old
+ new

@@ -98,13 +98,13 @@ group = empty_behaviour_group group.before(:each) { 15 } group.before(:each) { 'A' } group.before(:each) { 33.5 } - group.before_eachs[0].last.call.should == 15 - group.before_eachs[1].last.call.should == 'A' - group.before_eachs[2].last.call.should == 33.5 + group.before_eachs[0].call.should == 15 + group.before_eachs[1].call.should == 'A' + group.before_eachs[2].call.should == 33.5 end it "should expose the before all blocks at before_alls" do group = empty_behaviour_group group.before(:all) { 'foo' } @@ -115,13 +115,13 @@ group = empty_behaviour_group group.before(:all) { 15 } group.before(:all) { 'A' } group.before(:all) { 33.5 } - group.before_alls[0].last.call.should == 15 - group.before_alls[1].last.call.should == 'A' - group.before_alls[2].last.call.should == 33.5 + group.before_alls[0].call.should == 15 + group.before_alls[1].call.should == 'A' + group.before_alls[2].call.should == 33.5 end it "should expose the after each blocks at after_eachs" do group = empty_behaviour_group group.after(:each) { 'foo' } @@ -132,13 +132,13 @@ group = empty_behaviour_group group.after(:each) { 15 } group.after(:each) { 'A' } group.after(:each) { 33.5 } - group.after_eachs[0].last.call.should == 15 - group.after_eachs[1].last.call.should == 'A' - group.after_eachs[2].last.call.should == 33.5 + group.after_eachs[0].call.should == 15 + group.after_eachs[1].call.should == 'A' + group.after_eachs[2].call.should == 33.5 end it "should expose the after all blocks at after_alls" do group = empty_behaviour_group group.after(:all) { 'foo' } @@ -149,13 +149,13 @@ group = empty_behaviour_group group.after(:all) { 15 } group.after(:all) { 'A' } group.after(:all) { 33.5 } - group.after_alls[0].last.call.should == 15 - group.after_alls[1].last.call.should == 'A' - group.after_alls[2].last.call.should == 33.5 + group.after_alls[0].call.should == 15 + group.after_alls[1].call.should == 'A' + group.after_alls[2].call.should == 33.5 end end describe "adding examples" do @@ -244,6 +244,6 @@ Micronaut::Behaviour.run_examples(stub_behaviour, stub_everything('reporter')) end end -end +end \ No newline at end of file