features/mocks/mock_model.feature in rspec-rails-2.4.1 vs features/mocks/mock_model.feature in rspec-rails-2.5.0

- old
+ new

@@ -35,11 +35,11 @@ end end end """ When I run "rspec spec/models/car_spec.rb" - Then the output should contain "3 examples, 0 failures" + Then the examples should all pass Scenario: passing a string that represents an existing constant Given a file named "spec/models/widget_spec.rb" with: """ require "spec_helper" @@ -50,11 +50,11 @@ widget.should be_a(Widget) end end """ When I run "rspec spec/models/widget_spec.rb" - Then the output should contain "1 example, 0 failures" + Then the examples should all pass Scenario: passing a class that does not extend ActiveModel::Naming Given a file named "spec/models/string_spec.rb" with: """ require "spec_helper" @@ -64,11 +64,11 @@ expect { mock_model(String) }.to raise_exception end end """ When I run "rspec spec/models/string_spec.rb" - Then the output should contain "1 example, 0 failures" + Then the examples should all pass Scenario: passing an Active Record constant Given a file named "spec/models/widget_spec.rb" with: """ require "spec_helper" @@ -93,11 +93,11 @@ widget.id.should be_nil end end """ When I run "rspec spec/models/widget_spec.rb" - Then the output should contain "4 examples, 0 failures" + Then the examples should all pass Scenario: passing an Active Record constant with method stubs Given a file named "spec/models/widget_spec.rb" with: """ require "spec_helper" @@ -126,6 +126,6 @@ end end end """ When I run "rspec spec/models/widget_spec.rb" - Then the output should contain "3 examples, 0 failures" + Then the examples should all pass