Permalink
Browse files

update to aruba 0.1.9

  • Loading branch information...
1 parent 6bfcc08 commit 8d5976626ea7bb83ca3c65256d1a03b07d77a199 @dchelimsky dchelimsky committed Jul 2, 2010
@@ -37,36 +37,36 @@ Feature: example name option
Scenario: no matches
When I run "rspec . --example nothing_like_this"
- Then I should see "0 examples, 0 failures"
+ Then the output should contain "0 examples, 0 failures"
Scenario: match on one word
When I run "rspec . --example example"
- Then I should see "7 examples, 0 failures"
+ Then the output should contain "7 examples, 0 failures"
Scenario: one match in each context
When I run "rspec . --example 'first example'"
- Then I should see "4 examples, 0 failures"
+ Then the output should contain "4 examples, 0 failures"
Scenario: one match in one file using just the example name
When I run "rspec . --example 'first example in first group'"
- Then I should see "1 example, 0 failures"
+ Then the output should contain "1 example, 0 failures"
Scenario: one match in one file using the example name and the group name
When I run "rspec . --example 'first group first example in first group'"
- Then I should see "1 example, 0 failures"
+ Then the output should contain "1 example, 0 failures"
Scenario: one match in one file using regexp
When I run "rspec . --example 'first .* first example'"
- Then I should see "1 example, 0 failures"
+ Then the output should contain "1 example, 0 failures"
Scenario: all examples in one group
When I run "rspec . --example 'first group'"
- Then I should see "2 examples, 0 failures"
+ Then the output should contain "2 examples, 0 failures"
Scenario: one match in one file with group name
When I run "rspec . --example 'second group first example'"
- Then I should see "1 example, 0 failures"
+ Then the output should contain "1 example, 0 failures"
Scenario: all examples in one group including examples in nested groups
When I run "rspec . --example 'third group'"
- Then I should see "3 examples, 0 failures"
+ Then the output should contain "3 examples, 0 failures"
@@ -30,79 +30,79 @@ Feature: line number appended to file path
Scenario: nested groups - outer group on declaration line
When I run "rspec ./example_spec.rb:1 --format doc"
- Then I should see "3 examples, 0 failures"
- And I should see "second example in outer group"
- And I should see "first example in outer group"
- And I should see "example in nested group"
+ Then the output should contain "3 examples, 0 failures"
+ And the output should contain "second example in outer group"
+ And the output should contain "first example in outer group"
+ And the output should contain "example in nested group"
Scenario: nested groups - outer group inside block before example
When I run "rspec ./example_spec.rb:2 --format doc"
- Then I should see "3 examples, 0 failures"
- And I should see "second example in outer group"
- And I should see "first example in outer group"
- And I should see "example in nested group"
+ Then the output should contain "3 examples, 0 failures"
+ And the output should contain "second example in outer group"
+ And the output should contain "first example in outer group"
+ And the output should contain "example in nested group"
Scenario: nested groups - inner group on declaration line
When I run "rspec ./example_spec.rb:11 --format doc"
- Then I should see "1 example, 0 failures"
- And I should see "example in nested group"
- And I should not see "second example in outer group"
- And I should not see "first example in outer group"
+ Then the output should contain "1 example, 0 failures"
+ And the output should contain "example in nested group"
+ And the output should not contain "second example in outer group"
+ And the output should not contain "first example in outer group"
Scenario: nested groups - inner group inside block before example
When I run "rspec ./example_spec.rb:12 --format doc"
- Then I should see "1 example, 0 failures"
- And I should see "example in nested group"
- And I should not see "second example in outer group"
- And I should not see "first example in outer group"
+ Then the output should contain "1 example, 0 failures"
+ And the output should contain "example in nested group"
+ And the output should not contain "second example in outer group"
+ And the output should not contain "first example in outer group"
Scenario: two examples - first example on declaration line
When I run "rspec ./example_spec.rb:3 --format doc"
- Then I should see "1 example, 0 failures"
- And I should see "first example in outer group"
- But I should not see "second example in outer group"
- And I should not see "example in nested group"
+ Then the output should contain "1 example, 0 failures"
+ And the output should contain "first example in outer group"
+ But the output should not contain "second example in outer group"
+ And the output should not contain "example in nested group"
Scenario: two examples - first example inside block
When I run "rspec ./example_spec.rb:4 --format doc"
- Then I should see "1 example, 0 failures"
- And I should see "first example in outer group"
- But I should not see "second example in outer group"
- And I should not see "example in nested group"
+ Then the output should contain "1 example, 0 failures"
+ And the output should contain "first example in outer group"
+ But the output should not contain "second example in outer group"
+ And the output should not contain "example in nested group"
Scenario: two examples - first example on end
When I run "rspec ./example_spec.rb:5 --format doc"
- Then I should see "1 example, 0 failures"
- And I should see "first example in outer group"
- But I should not see "second example in outer group"
- And I should not see "example in nested group"
+ Then the output should contain "1 example, 0 failures"
+ And the output should contain "first example in outer group"
+ But the output should not contain "second example in outer group"
+ And the output should not contain "example in nested group"
Scenario: two examples - first example after end but before next example
When I run "rspec ./example_spec.rb:6 --format doc"
- Then I should see "1 example, 0 failures"
- And I should see "first example in outer group"
- But I should not see "second example in outer group"
- And I should not see "example in nested group"
+ Then the output should contain "1 example, 0 failures"
+ And the output should contain "first example in outer group"
+ But the output should not contain "second example in outer group"
+ And the output should not contain "example in nested group"
Scenario: two examples - second example on declaration line
When I run "rspec ./example_spec.rb:7 --format doc"
- Then I should see "1 example, 0 failures"
- And I should see "second example in outer group"
- But I should not see "first example in outer group"
- And I should not see "example in nested group"
+ Then the output should contain "1 example, 0 failures"
+ And the output should contain "second example in outer group"
+ But the output should not contain "first example in outer group"
+ And the output should not contain "example in nested group"
Scenario: two examples - second example inside block
When I run "rspec ./example_spec.rb:7 --format doc"
- Then I should see "1 example, 0 failures"
- And I should see "second example in outer group"
- But I should not see "first example in outer group"
- And I should not see "example in nested group"
+ Then the output should contain "1 example, 0 failures"
+ And the output should contain "second example in outer group"
+ But the output should not contain "first example in outer group"
+ And the output should not contain "example in nested group"
Scenario: two examples - second example on end
When I run "rspec ./example_spec.rb:7 --format doc"
- Then I should see "1 example, 0 failures"
- And I should see "second example in outer group"
- But I should not see "first example in outer group"
- And I should not see "example in nested group"
+ Then the output should contain "1 example, 0 failures"
+ And the output should contain "second example in outer group"
+ But the output should not contain "first example in outer group"
+ And the output should not contain "example in nested group"
@@ -21,8 +21,8 @@ Feature: line number option
end
"""
When I run "rspec ./example_spec.rb --line 5 --format doc"
- Then I should see "1 example, 0 failures"
- Then I should see "should be > 8"
+ Then the output should contain "1 example, 0 failures"
+ Then the output should contain "should be > 8"
But the stdout should not contain "should be < 10"
Scenario: one liner
@@ -39,6 +39,6 @@ Feature: line number option
end
"""
When I run "rspec ./example_spec.rb --line 5 --format doc"
- Then I should see "1 example, 0 failures"
- Then I should see "should be > 8"
+ Then the output should contain "1 example, 0 failures"
+ Then the output should contain "should be > 8"
But the stdout should not contain "should be < 10"
@@ -32,7 +32,7 @@ Feature: custom settings
end
"""
When I run "rspec ./additional_setting_spec.rb"
- Then I should see "0 failures"
+ Then the output should contain "0 failures"
Scenario: default to true
Given a file named "additional_setting_spec.rb" with:
@@ -58,7 +58,7 @@ Feature: custom settings
end
"""
When I run "rspec ./additional_setting_spec.rb"
- Then I should see "0 failures"
+ Then the output should contain "0 failures"
Scenario: overridden in a subsequent RSpec.configure block
Given a file named "additional_setting_spec.rb" with:
@@ -82,5 +82,5 @@ Feature: custom settings
end
"""
When I run "rspec ./additional_setting_spec.rb"
- Then I should see "0 failures"
+ Then the output should contain "0 failures"
@@ -21,7 +21,7 @@ Feature: spec/spec.opts
end
"""
When I run "rspec ./spec/example_spec.rb"
- Then I should see "1 example, 0 failures"
+ Then the output should contain "1 example, 0 failures"
Scenario: color set in .rspec
Given a file named ".rspec" with:
@@ -39,7 +39,7 @@ Feature: spec/spec.opts
end
"""
When I run "rspec ./spec/example_spec.rb"
- Then I should see "1 example, 0 failures"
+ Then the output should contain "1 example, 0 failures"
Scenario: formatter set in both (RSpec.configure wins)
Given a file named ".rspec" with:
@@ -63,5 +63,5 @@ Feature: spec/spec.opts
end
"""
When I run "rspec ./spec/example_spec.rb"
- Then I should see "1 example, 0 failures"
+ Then the output should contain "1 example, 0 failures"
@@ -18,7 +18,7 @@ Feature: Nested example groups
end
"""
When I run "rspec ./context_instead_of_describe_spec.rb -fn"
- Then I should see:
+ Then the output should contain:
"""
Using context
with nested context
@@ -20,10 +20,10 @@ Feature: Nested example groups
end
end
"""
- When I run "rspec ./nested_example_groups.rb -fdoc"
- Then I should see matching /^Some Object/
- And I should see matching /^\s+with some more context/
- And I should see matching /^\s+with some other context/
+ When I run "rspec nested_example_groups.rb -fdoc"
+ Then the output should contain "Some Object"
+ And the output should contain "with some more context"
+ And the output should contain "with some other context"
Scenario: failure in outer group continues to run inner groups
Given a file named "nested_example_groups.rb" with:
@@ -39,6 +39,6 @@ Feature: Nested example groups
end
end
"""
- When I run "rspec ./nested_example_groups.rb -fdoc"
- Then I should see "2 examples, 1 failure"
- And I should see "passes"
+ When I run "rspec nested_example_groups.rb -fdoc"
+ Then the output should contain "2 examples, 1 failure"
+ And the output should contain "passes"
@@ -16,8 +16,8 @@ Feature: inclusion feature
end
"""
When I run "rspec ./spec/sample_spec.rb --format doc"
- Then I should see "does another thing"
- And I should not see "does one thing"
+ Then the output should contain "does another thing"
+ And the output should not contain "does one thing"
Scenario: focus on one group
Given a file named "spec/sample_spec.rb" with:
@@ -40,9 +40,9 @@ Feature: inclusion feature
end
"""
When I run "rspec ./spec/sample_spec.rb --format doc"
- Then I should see "group 1 example 1"
- And I should see "group 1 example 2"
- And I should not see "group 2 example 1"
+ Then the output should contain "group 1 example 1"
+ And the output should contain "group 1 example 2"
+ And the output should not contain "group 2 example 1"
Scenario: no examples match filter
Given a file named "spec/sample_spec.rb" with:
@@ -66,9 +66,9 @@ Feature: inclusion feature
end
"""
When I run "rspec ./spec/sample_spec.rb --format doc"
- Then I should see "No examples were matched by {:focus=>true}, running all"
- And I should see "group 1 example 1"
- And I should see "group 1 example 2"
- And I should see "group 2 example 1"
- And I should see "3 examples, 0 failures"
+ Then the output should contain "No examples were matched by {:focus=>true}, running all"
+ And the output should contain "group 1 example 1"
+ And the output should contain "group 1 example 2"
+ And the output should contain "group 2 example 1"
+ And the output should contain "3 examples, 0 failures"
@@ -28,5 +28,5 @@ Feature: custom formatters
"""
When I run "rspec ./simple_example_spec.rb --require custom_formatter.rb --format CustomFormatter"
- Then I should see "example: my example"
+ Then the output should contain "example: my example"
And the exit status should be 0
Oops, something went wrong.

0 comments on commit 8d59766

Please sign in to comment.