added RSpec and RSpec on Rails
This commit is contained in:
parent
ddd5b4cf19
commit
3f607d565b
316 changed files with 23828 additions and 0 deletions
12
vendor/gems/rspec-1.1.2/stories/resources/spec/example_group_with_should_methods.rb
vendored
Normal file
12
vendor/gems/rspec-1.1.2/stories/resources/spec/example_group_with_should_methods.rb
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
$:.push File.join(File.dirname(__FILE__), *%w[.. .. .. lib])
|
||||
require 'spec'
|
||||
|
||||
class MySpec < Spec::ExampleGroup
|
||||
def should_pass_with_should
|
||||
1.should == 1
|
||||
end
|
||||
|
||||
def should_fail_with_should
|
||||
1.should == 2
|
||||
end
|
||||
end
|
8
vendor/gems/rspec-1.1.2/stories/resources/spec/simple_spec.rb
vendored
Normal file
8
vendor/gems/rspec-1.1.2/stories/resources/spec/simple_spec.rb
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
$:.push File.join(File.dirname(__FILE__), *%w[.. .. .. lib])
|
||||
require 'spec'
|
||||
|
||||
describe "Running an Example" do
|
||||
it "should not output twice" do
|
||||
true.should be_true
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue