mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 09:40:13 +01:00
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:
parent
0600756bbf
commit
0f7d6f7a1d
602 changed files with 47788 additions and 29 deletions
29
vendor/plugins/rspec/failing_examples/predicate_example.rb
vendored
Normal file
29
vendor/plugins/rspec/failing_examples/predicate_example.rb
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
require File.dirname(__FILE__) + '/spec_helper'
|
||||
|
||||
class BddFramework
|
||||
def intuitive?
|
||||
true
|
||||
end
|
||||
|
||||
def adopted_quickly?
|
||||
#this will cause failures because it reallly SHOULD be adopted quickly
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
describe "BDD framework" do
|
||||
|
||||
before(:each) do
|
||||
@bdd_framework = BddFramework.new
|
||||
end
|
||||
|
||||
it "should be adopted quickly" do
|
||||
#this will fail because it reallly SHOULD be adopted quickly
|
||||
@bdd_framework.should be_adopted_quickly
|
||||
end
|
||||
|
||||
it "should be intuitive" do
|
||||
@bdd_framework.should be_intuitive
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue