Permalink
Browse files

upgrade cucumber and aruba

  • Loading branch information...
1 parent 8e2c1a2 commit 20e96019e69530f39014c7d5bcbd3337182d9ecd @dchelimsky dchelimsky committed Mar 25, 2011
View
@@ -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"
@@ -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
@@ -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"
@@ -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
@@ -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
@@ -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"
@@ -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
@@ -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
@@ -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"
@@ -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
@@ -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
@@ -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"
@@ -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
@@ -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"
@@ -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"
@@ -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"
@@ -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"
@@ -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
@@ -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"
View
@@ -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.