Skip to content

Commit

Permalink
upgrade cucumber and aruba
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Mar 25, 2011
1 parent 8e2c1a2 commit 20e9601
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 21 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ end

### dev dependencies
gem "rake", "0.8.7"
gem "cucumber", "0.9.4"
gem "aruba", "0.2.2"
gem "cucumber", "~> 0.10.2"
gem "aruba", "~> 0.3.5"
gem "rcov", "0.9.9"
gem "relish", "0.2.0"
gem "guard-rspec", "0.1.9"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Feature: block local expectations
end
end
"""
When I run "rspec ./spec/account_spec.rb"
When I run `rspec spec/account_spec.rb`
Then the output should contain "1 example, 0 failures"

Scenario: failing example
Expand All @@ -51,5 +51,5 @@ Feature: block local expectations
end
"""

When I run "rspec ./spec/account_spec.rb"
When I run `rspec spec/account_spec.rb`
Then the output should contain "1 example, 1 failure"
6 changes: 3 additions & 3 deletions features/message_expectations/expect_message.feature
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Feature: expect a message
end
end
"""
When I run "rspec spec/account_spec.rb"
When I run `rspec spec/account_spec.rb`
Then the output should contain "1 example, 0 failures"

Scenario: expect a message with an argument
Expand Down Expand Up @@ -64,7 +64,7 @@ Feature: expect a message
end
end
"""
When I run "rspec spec/account_spec.rb"
When I run `rspec spec/account_spec.rb`
Then the output should contain "1 example, 0 failures"

Scenario: provide a return value
Expand All @@ -90,5 +90,5 @@ Feature: expect a message
end
end
"""
When I run "rspec message_expectation_spec.rb"
When I run `rspec message_expectation_spec.rb`
Then the output should contain "2 examples, 0 failures"
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Feature: warn when expectation is set on nil
end
end
"""
When I run "rspec ./example_spec.rb"
When I run `rspec example_spec.rb`
Then the output should contain "An expectation of :foo was set on nil"

Scenario: allow
Expand All @@ -26,7 +26,7 @@ Feature: warn when expectation is set on nil
end
end
"""
When I run "rspec ./example_spec.rb"
When I run `rspec example_spec.rb`
Then the output should not contain "An expectation"

Scenario: allow in one example, but not on another
Expand All @@ -45,6 +45,6 @@ Feature: warn when expectation is set on nil
end
end
"""
When I run "rspec ./example_spec.rb"
When I run `rspec example_spec.rb`
Then the output should contain "An expectation of :bar"
And the output should not contain "An expectation of :foo"
2 changes: 1 addition & 1 deletion features/method_stubs/as_null_object.feature
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ Feature: as_null_object method stub
end
end
"""
When I run "rspec as_null_object_spec.rb"
When I run `rspec as_null_object_spec.rb`
Then the examples should all pass
4 changes: 2 additions & 2 deletions features/method_stubs/simple_return_value.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Feature: stub with a simple return value
end
end
"""
When I run "rspec example_spec.rb"
When I run `rspec example_spec.rb`
Then the output should contain "0 failures"

Scenario: single return value
Expand Down Expand Up @@ -51,5 +51,5 @@ Feature: stub with a simple return value
end
end
"""
When I run "rspec example_spec.rb"
When I run `rspec example_spec.rb`
Then the output should contain "0 failures"
2 changes: 1 addition & 1 deletion features/method_stubs/stub_chain.feature
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ Feature: stub a chain of methods
end
end
"""
When I run "rspec stub_chain_spec.rb"
When I run `rspec stub_chain_spec.rb`
Then the examples should all pass
2 changes: 1 addition & 1 deletion features/method_stubs/stub_implementation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ Feature: stub with substitute implementation
end
end
"""
When I run "rspec ./stub_implementation_spec.rb"
When I run `rspec stub_implementation_spec.rb`
Then the output should contain "1 example, 0 failures"
6 changes: 3 additions & 3 deletions features/outside_rspec/configuration.feature
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Feature: configure any test framework to use rspec-mocks
puts example.respond_to?(:stub)
"""

When I run "ruby foo.rb"
When I run `ruby foo.rb`
Then the output should contain "true"
But the output should not contain "false"

Expand All @@ -60,7 +60,7 @@ Feature: configure any test framework to use rspec-mocks
puts obj.respond_to?(:stub)
"""

When I run "ruby foo.rb"
When I run `ruby foo.rb`
Then the output should contain "true"
But the output should not contain "false"

Expand All @@ -76,7 +76,7 @@ Feature: configure any test framework to use rspec-mocks
puts obj.respond_to?(:stub)
"""

When I run "ruby foo.rb"
When I run `ruby foo.rb`
Then the output should contain "false"
But the output should not contain "true"

4 changes: 2 additions & 2 deletions features/outside_rspec/standalone.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: standalone
greeter.stub(:say_hi) { "Hello!" }
puts greeter.say_hi
"""
When I run "ruby example.rb"
When I run `ruby example.rb`
Then the output should contain "Hello!"

Scenario: message expectation outside rspec
Expand All @@ -26,7 +26,7 @@ Feature: standalone
RSpec::Mocks.verify
"""
When I run "ruby example.rb"
When I run `ruby example.rb`
Then the output should contain "say_hi(any args) (RSpec::Mocks::MockExpectationError)"
Then the output should contain "expected: 1 time"
Then the output should contain "received: 0 times"
6 changes: 5 additions & 1 deletion features/support/env.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
require 'aruba'
require 'aruba/cucumber'
require 'rspec/expectations'

Before do
@aruba_timeout_seconds = 3
end

0 comments on commit 20e9601

Please sign in to comment.