Navigation Menu

Skip to content

Commit

Permalink
update expected output in cukes to align with changes in rspec-core
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Jan 2, 2011
1 parent ea4dd96 commit 3b0e957
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 60 deletions.
20 changes: 10 additions & 10 deletions features/built_in_matchers/be.feature
Expand Up @@ -83,28 +83,28 @@ Feature: "be" matchers
Then the output should contain "10 examples, 5 failures"
And the output should contain:
"""
expected: not nil
got: nil
expected: not nil
got: nil
"""
And the output should contain:
"""
expected: nil
got: false
expected: nil
got: false
"""
And the output should contain:
"""
expected: nil
got: true
expected: nil
got: true
"""
And the output should contain:
"""
expected: nil
got: 7
expected: nil
got: 7
"""
And the output should contain:
"""
expected: nil
got: "foo"
expected: nil
got: "foo"
"""

Scenario: be matcher
Expand Down
76 changes: 38 additions & 38 deletions features/built_in_matchers/operators.feature
Expand Up @@ -51,38 +51,38 @@ Feature: operator matchers
And the output should contain:
"""
Failure/Error: it { should == 28 }
expected: 28
got: 18 (using ==)
expected: 28
got: 18 (using ==)
"""
And the output should contain:
"""
Failure/Error: it { should be < 15 }
expected: < 15
got: 18
expected: < 15
got: 18
"""
And the output should contain:
"""
Failure/Error: it { should be > 20 }
expected: > 20
got: 18
expected: > 20
got: 18
"""
And the output should contain:
"""
Failure/Error: it { should be <= 17 }
expected: <= 17
got: 18
expected: <= 17
got: 18
"""
And the output should contain:
"""
Failure/Error: it { should be >= 19 }
expected: >= 19
got: 18
expected: >= 19
got: 18
"""
And the output should contain:
"""
Failure/Error: it { should_not == 18 }
expected not: == 18
got: 18
expected not: == 18
got: 18
"""

Scenario: string operator matchers
Expand Down Expand Up @@ -124,56 +124,56 @@ Feature: operator matchers
And the output should contain:
"""
Failure/Error: it { should == "Peach" }
expected: "Peach"
got: "Strawberry" (using ==)
expected: "Peach"
got: "Strawberry" (using ==)
"""
And the output should contain:
"""
Failure/Error: it { should be < "Cranberry" }
expected: < "Cranberry"
got: "Strawberry"
expected: < "Cranberry"
got: "Strawberry"
"""
And the output should contain:
"""
Failure/Error: it { should be > "Zuchini" }
expected: > "Zuchini"
got: "Strawberry"
expected: > "Zuchini"
got: "Strawberry"
"""
And the output should contain:
"""
Failure/Error: it { should be <= "Potato" }
expected: <= "Potato"
got: "Strawberry"
expected: <= "Potato"
got: "Strawberry"
"""
And the output should contain:
"""
Failure/Error: it { should be >= "Tomato" }
expected: >= "Tomato"
got: "Strawberry"
expected: >= "Tomato"
got: "Strawberry"
"""
And the output should contain:
"""
Failure/Error: it { should =~ /apple/ }
expected: /apple/
got: "Strawberry" (using =~)
expected: /apple/
got: "Strawberry" (using =~)
"""
And the output should contain:
"""
Failure/Error: it { should_not == "Strawberry" }
expected not: == "Strawberry"
got: "Strawberry"
expected not: == "Strawberry"
got: "Strawberry"
"""
And the output should contain:
"""
Failure/Error: it { should_not =~ /berry/ }
expected not: =~ /berry/
got: "Strawberry"
expected not: =~ /berry/
got: "Strawberry"
"""
And the output should contain:
"""
Failure/Error: Symbol.should === subject
expected: "Strawberry"
got: Symbol (using ===)
expected: "Strawberry"
got: Symbol (using ===)
"""

Scenario: array operator matchers
Expand Down Expand Up @@ -201,21 +201,21 @@ Feature: operator matchers
And the output should contain:
"""
Failure/Error: it { should_not == [1, 2, 3] }
expected not: == [1, 2, 3]
got: [1, 2, 3]
expected not: == [1, 2, 3]
got: [1, 2, 3]
"""
And the output should contain:
"""
Failure/Error: it { should == [1, 3, 2] }
expected: [1, 3, 2]
got: [1, 2, 3] (using ==)
expected: [1, 3, 2]
got: [1, 2, 3] (using ==)
"""
And the output should contain:
"""
Failure/Error: it { should =~ [1, 2, 1] }
expected collection contained: [1, 1, 2]
actual collection contained: [1, 2, 3]
the missing elements were: [1]
the extra elements were: [3]
expected collection contained: [1, 1, 2]
actual collection contained: [1, 2, 3]
the missing elements were: [1]
the extra elements were: [3]
"""

24 changes: 12 additions & 12 deletions features/diffing.feature
Expand Up @@ -24,12 +24,12 @@ Feature: diffing
When I run "rspec example_spec.rb"
Then the output should contain:
"""
Diff:
@@ -1,4 +1,4 @@
this is the
- expected
+ actual
string
Diff:
@@ -1,4 +1,4 @@
this is the
- expected
+ actual
string
"""

Scenario: diff for a multiline string and a regexp
Expand All @@ -50,12 +50,12 @@ Feature: diffing
When I run "rspec example_spec.rb"
Then the output should contain:
"""
Diff:
@@ -1,2 +1,4 @@
-/expected/m
+this is the
+ actual
+ string
Diff:
@@ -1,2 +1,4 @@
-/expected/m
+this is the
+ actual
+ string
"""

Scenario: no diff for a single line strings
Expand Down

0 comments on commit 3b0e957

Please sign in to comment.