added RSpec and RSpec on Rails
This commit is contained in:
parent
ddd5b4cf19
commit
3f607d565b
316 changed files with 23828 additions and 0 deletions
14
vendor/gems/rspec-1.1.2/examples/pure/helper_method_example.rb
vendored
Normal file
14
vendor/gems/rspec-1.1.2/examples/pure/helper_method_example.rb
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
require File.dirname(__FILE__) + '/spec_helper'
|
||||
|
||||
module HelperMethodExample
|
||||
describe "an example group with helper a method" do
|
||||
def helper_method
|
||||
"received call"
|
||||
end
|
||||
|
||||
it "should make that method available to specs" do
|
||||
helper_method.should == "received call"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue