Permalink
Browse files

upgrade cucumber and aruba

  • Loading branch information...
1 parent ae1c3f8 commit 0a2986676c24283c21eb6aea398888b87a37e312 @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"
@@ -25,7 +25,7 @@ Feature: "be" matchers
specify { false.should be_true }
end
"""
- When I run "rspec be_true_spec.rb"
+ When I run `rspec be_true_spec.rb`
Then the output should contain all of these:
| 10 examples, 5 failures |
| expected true not to be true |
@@ -52,7 +52,7 @@ Feature: "be" matchers
specify { "foo".should be_false }
end
"""
- When I run "rspec be_false_spec.rb"
+ When I run `rspec be_false_spec.rb`
Then the output should contain all of these:
| 10 examples, 5 failures |
| expected nil not to be false |
@@ -79,7 +79,7 @@ Feature: "be" matchers
specify { "foo".should be_nil }
end
"""
- When I run "rspec be_nil_spec.rb"
+ When I run `rspec be_nil_spec.rb`
Then the output should contain "10 examples, 5 failures"
And the output should contain:
"""
@@ -125,7 +125,7 @@ Feature: "be" matchers
specify { false.should be }
end
"""
- When I run "rspec be_spec.rb"
+ When I run `rspec be_spec.rb`
Then the output should contain all of these:
| 10 examples, 5 failures |
| expected true to evaluate to false |
@@ -34,7 +34,7 @@ Feature: be_within matcher
it { should be_within(0.5).of(27) }
end
"""
- When I run "rspec be_within_matcher_spec.rb"
+ When I run `rspec be_within_matcher_spec.rb`
Then the output should contain all of these:
| 8 examples, 4 failures |
| expected 27.5 not to be within 0.5 of 27.9 |
@@ -42,7 +42,7 @@ Feature: equality matchers
end
end
"""
- When I run "rspec compare_using_eq.rb"
+ When I run `rspec compare_using_eq.rb`
Then the output should contain "3 examples, 0 failures"
Scenario: compare using ==
@@ -66,7 +66,7 @@ Feature: equality matchers
end
end
"""
- When I run "rspec compare_using_==.rb"
+ When I run `rspec compare_using_==.rb`
Then the output should contain "3 examples, 0 failures"
Scenario: compare using eql (eql?)
@@ -89,7 +89,7 @@ Feature: equality matchers
end
"""
- When I run "rspec compare_using_eql.rb"
+ When I run `rspec compare_using_eql.rb`
Then the output should contain "3 examples, 0 failures"
Scenario: compare using equal (equal?)
@@ -113,7 +113,7 @@ Feature: equality matchers
end
"""
- When I run "rspec compare_using_equal.rb"
+ When I run `rspec compare_using_equal.rb`
Then the output should contain "3 examples, 0 failures"
Scenario: compare using be (equal?)
@@ -137,6 +137,6 @@ Feature: equality matchers
end
"""
- When I run "rspec compare_using_be.rb"
+ When I run `rspec compare_using_be.rb`
Then the output should contain "3 examples, 0 failures"
@@ -36,7 +36,7 @@ Feature: exist matcher
it { should exist } # deliberate failure
end
"""
- When I run "rspec exist_matcher_spec.rb"
+ When I run `rspec exist_matcher_spec.rb`
Then the output should contain all of these:
| 4 examples, 2 failures |
| expected <Planet: Earth> not to exist |
@@ -35,7 +35,7 @@ Feature: expect change
end
end
"""
- When I run "rspec spec/example_spec.rb"
+ When I run `rspec spec/example_spec.rb`
Then the output should contain "1 failure"
Then the output should contain "should have been changed by 2, but was changed by 1"
@@ -54,6 +54,6 @@ Feature: expect change
end
end
"""
- When I run "rspec spec/example_spec.rb"
+ When I run `rspec spec/example_spec.rb`
Then the output should contain "2 failures"
Then the output should contain "should not have changed, but did change from 1 to 2"
@@ -24,7 +24,7 @@ Feature: raise_error matcher
end
end
"""
- When I run "rspec expect_error_spec.rb"
+ When I run `rspec expect_error_spec.rb`
Then the example should pass
Scenario: expect specific error
@@ -36,7 +36,7 @@ Feature: raise_error matcher
end
end
"""
- When I run "rspec expect_error_spec.rb"
+ When I run `rspec expect_error_spec.rb`
Then the example should pass
Scenario: expect specific error message using a string
@@ -49,7 +49,7 @@ Feature: raise_error matcher
end
end
"""
- When I run "rspec expect_error_with_message.rb"
+ When I run `rspec expect_error_with_message.rb`
Then the example should pass
Scenario: expect specific error message using a regular expression
@@ -62,7 +62,7 @@ Feature: raise_error matcher
end
end
"""
- When I run "rspec expect_error_with_regex.rb"
+ When I run `rspec expect_error_with_regex.rb`
Then the example should pass
Scenario: set expectations on error object passed to block
@@ -76,7 +76,7 @@ Feature: raise_error matcher
end
end
"""
- When I run "rspec expect_error_with_block_spec.rb"
+ When I run `rspec expect_error_with_block_spec.rb`
Then the example should pass
Scenario: expect no error at all
@@ -88,7 +88,7 @@ Feature: raise_error matcher
end
end
"""
- When I run "rspec expect_no_error_spec.rb"
+ When I run `rspec expect_no_error_spec.rb`
Then the example should pass
Scenario: expect no occurence of a specific error
@@ -101,5 +101,5 @@ Feature: raise_error matcher
end
end
"""
- When I run "rspec expect_no_error_spec.rb"
+ When I run `rspec expect_no_error_spec.rb`
Then the example should pass
@@ -51,7 +51,7 @@ Feature: have(n).items matcher
it { should have_at_most(2).items }
end
"""
- When I run "rspec have_items_spec.rb"
+ When I run `rspec have_items_spec.rb`
Then the output should contain "16 examples, 8 failures"
And the output should contain "expected target not to have 3 items, got 3"
And the output should contain "expected 2 items, got 3"
@@ -93,7 +93,7 @@ Feature: have(n).items matcher
it { should have_at_most(4).words }
end
"""
- When I run "rspec have_words_spec.rb"
+ When I run `rspec have_words_spec.rb`
Then the output should contain "16 examples, 8 failures"
And the output should contain "expected target not to have 5 words, got 5"
And the output should contain "expected 4 words, got 5"
@@ -47,7 +47,7 @@ Feature: include matcher
it { should_not include(1, 9) }
end
"""
- When I run "rspec array_include_matcher_spec.rb"
+ When I run `rspec array_include_matcher_spec.rb`
Then the output should contain all of these:
| 14 examples, 7 failures |
| expected [1, 3, 7] to include 4 |
@@ -74,7 +74,7 @@ Feature: include matcher
it { should_not include("str", "foo") }
end
"""
- When I run "rspec string_include_matcher_spec.rb"
+ When I run `rspec string_include_matcher_spec.rb`
Then the output should contain all of these:
| 8 examples, 4 failures |
| expected "a string" to include "foo" |
@@ -117,5 +117,5 @@ Feature: include matcher
it { should_not include(:a => 7, :d => 3) }
end
"""
- When I run "rspec hash_include_matcher_spec.rb"
+ When I run `rspec hash_include_matcher_spec.rb`
Then the output should contain "13 failure"
@@ -24,7 +24,7 @@ Feature: match matcher
it { should match(/foo/) }
end
"""
- When I run "rspec string_match_spec.rb"
+ When I run `rspec string_match_spec.rb`
Then the output should contain all of these:
| 4 examples, 2 failures |
| expected "a string" not to match /str/ |
@@ -42,7 +42,7 @@ Feature: match matcher
it { should match("drinks") }
end
"""
- When I run "rspec regexp_match_spec.rb"
+ When I run `rspec regexp_match_spec.rb`
Then the output should contain all of these:
| 4 examples, 2 failures |
| expected /foo/ not to match "food" |
@@ -46,7 +46,7 @@ Feature: operator matchers
it { should_not == 18 }
end
"""
- When I run "rspec numeric_operator_matchers_spec.rb"
+ When I run `rspec numeric_operator_matchers_spec.rb`
Then the output should contain "12 examples, 6 failures"
And the output should contain:
"""
@@ -119,7 +119,7 @@ Feature: operator matchers
end
end
"""
- When I run "rspec string_operator_matchers_spec.rb"
+ When I run `rspec string_operator_matchers_spec.rb`
Then the output should contain "18 examples, 9 failures"
And the output should contain:
"""
@@ -196,7 +196,7 @@ Feature: operator matchers
it { should =~ [1, 2, 1] }
end
"""
- When I run "rspec array_operator_matchers_spec.rb"
+ When I run `rspec array_operator_matchers_spec.rb`
Then the output should contain "11 examples, 3 failures"
And the output should contain:
"""
@@ -46,7 +46,7 @@ Feature: predicate matchers
it { should be_zero } # deliberate failure
end
"""
- When I run "rspec should_be_zero_spec.rb"
+ When I run `rspec should_be_zero_spec.rb`
Then the output should contain "2 examples, 1 failure"
And the output should contain "expected zero? to return true, got false"
@@ -61,7 +61,7 @@ Feature: predicate matchers
it { should_not be_empty } # deliberate failure
end
"""
- When I run "rspec should_not_be_empty_spec.rb"
+ When I run `rspec should_not_be_empty_spec.rb`
Then the output should contain "2 examples, 1 failure"
And the output should contain "expected empty? to return false, got true"
@@ -74,7 +74,7 @@ Feature: predicate matchers
it { should have_key(:bar) } # deliberate failure
end
"""
- When I run "rspec should_have_key_spec.rb"
+ When I run `rspec should_have_key_spec.rb`
Then the output should contain "2 examples, 1 failure"
And the output should contain "expected #has_key?(:bar) to return true, got false"
@@ -99,7 +99,7 @@ Feature: predicate matchers
end
end
"""
- When I run "rspec should_not_have_all_string_keys_spec.rb"
+ When I run `rspec should_not_have_all_string_keys_spec.rb`
Then the output should contain "2 examples, 1 failure"
And the output should contain "expected #has_all_string_keys?(nil) to return false, got true"
@@ -121,7 +121,7 @@ Feature: predicate matchers
it { should be_multiple_of(5) }
end
"""
- When I run "rspec predicate_matcher_argument_spec.rb"
+ When I run `rspec predicate_matcher_argument_spec.rb`
Then the output should contain "4 examples, 2 failures"
And the output should contain "expected multiple_of?(4) to return false, got true"
And the output should contain "expected multiple_of?(5) to return true, got false"
@@ -41,7 +41,7 @@ Feature: respond_to matcher
it { should_not respond_to(:length, :flatten) }
end
"""
- When I run "rspec respond_to_matcher_spec.rb"
+ When I run `rspec respond_to_matcher_spec.rb`
Then the output should contain all of these:
| 10 examples, 6 failures |
| expected "a string" to respond to :to_model |
@@ -69,7 +69,7 @@ Feature: respond_to matcher
it { should_not respond_to(:between?).with(2).arguments }
end
"""
- When I run "rspec respond_to_matcher_argument_checking_spec.rb"
+ When I run `rspec respond_to_matcher_argument_checking_spec.rb`
Then the output should contain all of these:
| 8 examples, 4 failures |
| expected 7 to respond to :zero? with 1 argument |
@@ -23,7 +23,7 @@ Feature: satisfy matcher
it { should satisfy { |v| v > 15 } }
end
"""
- When I run "rspec satisfy_matcher_spec.rb"
+ When I run `rspec satisfy_matcher_spec.rb`
Then the output should contain all of these:
| 4 examples, 2 failures |
| expected 10 not to satisfy block |
@@ -28,7 +28,7 @@ Feature: throw_symbol matcher
specify { expect { 5 + 5 }.to throw_symbol }
end
"""
- When I run "rspec throw_symbol_matcher_spec.rb"
+ When I run `rspec throw_symbol_matcher_spec.rb`
Then the output should contain all of these:
| 6 examples, 3 failures |
| expected no Symbol to be thrown, got :foo |
@@ -51,7 +51,7 @@ Feature: throw_symbol matcher
specify { expect { throw :bar }.to throw_symbol(:foo) }
end
"""
- When I run "rspec throw_symbol_matcher_spec.rb"
+ When I run `rspec throw_symbol_matcher_spec.rb`
Then the output should contain all of these:
| 8 examples, 4 failures |
| expected :foo not to be thrown, got :foo |
@@ -75,7 +75,7 @@ Feature: throw_symbol matcher
specify { expect { throw :foo }.to throw_symbol(:foo, 7) }
end
"""
- When I run "rspec throw_symbol_argument_matcher_spec.rb"
+ When I run `rspec throw_symbol_argument_matcher_spec.rb`
Then the output should contain all of these:
| 8 examples, 4 failures |
| expected :foo with 7 not to be thrown, got :foo with 7 |
@@ -60,7 +60,7 @@ Feature: specify types of objects
it { should be_a(String) }
end
"""
- When I run "rspec be_kind_of_matcher_spec.rb"
+ When I run `rspec be_kind_of_matcher_spec.rb`
Then the output should contain all of these:
| 24 examples, 12 failures |
| expected 17 not to be a kind of Fixnum |
@@ -105,7 +105,7 @@ Feature: specify types of objects
it { should be_an_instance_of(String) }
end
"""
- When I run "rspec be_instance_of_matcher_spec.rb"
+ When I run `rspec be_instance_of_matcher_spec.rb`
Then the output should contain all of these:
| 16 examples, 8 failures |
| expected 17 not to be an instance of Fixnum |
Oops, something went wrong.

0 comments on commit 0a29866

Please sign in to comment.