added RSpec and RSpec on Rails
This commit is contained in:
parent
ddd5b4cf19
commit
3f607d565b
316 changed files with 23828 additions and 0 deletions
27
vendor/gems/rspec-1.1.2/examples/pure/predicate_example.rb
vendored
Normal file
27
vendor/gems/rspec-1.1.2/examples/pure/predicate_example.rb
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
require File.dirname(__FILE__) + '/spec_helper'
|
||||
|
||||
class BddFramework
|
||||
def intuitive?
|
||||
true
|
||||
end
|
||||
|
||||
def adopted_quickly?
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
describe "BDD framework" do
|
||||
|
||||
before(:each) do
|
||||
@bdd_framework = BddFramework.new
|
||||
end
|
||||
|
||||
it "should be adopted quickly" do
|
||||
@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