Added Rspec and Webrat plugins and started porting Selenium on Rails tests to Rspec Plain Text Stories driving Webrat driving Selenium.

This commit is contained in:
Luke Melia 2008-06-18 02:57:57 -04:00 committed by Simon Rozet
parent 7b432a74ed
commit 2c09db45c5
602 changed files with 47788 additions and 29 deletions

View file

@ -0,0 +1,25 @@
Story: Getting correct output
As an RSpec user
I want to see output only once
So that I don't get confused
Scenario: Run with ruby
Given the file spec/simple_spec.rb
When I run it with the ruby interpreter
Then the exit code should be 0
And the stdout should not match /\d+ tests, \d+ assertions, \d+ failures, \d+ errors/m
And the stdout should match "1 example, 0 failures"
Scenario: Run with CommandLine object
Given the file spec/simple_spec.rb
When I run it with the CommandLine object
Then the exit code should be 0
And the stdout should not match "Loaded suite"
And the stdout should not match /\d+ tests, \d+ assertions, \d+ failures, \d+ errors/m
And the stdout should match "1 example, 0 failures"
Scenario: Tweak backtrace
Given the file stories/failing_story.rb
When I run it with the ruby interpreter
Then the stdout should not match /\/lib\/spec\//