Sha256: a788f2e42bb31e57954b9deed5377e2e34db5711d4bc495c7492a3cc2c6a406e

Contents?: true

Size: 575 Bytes

Versions: 34

Compression:

Stored size: 575 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

# This was added to prove that http://rspec.lighthouseapp.com/projects/5645/tickets/211
# was fixed in ruby 1.9.1

module HelperMethodExample
  describe "a helper method" do
    def helper_method
      "received call"
    end
  
    it "is available to examples in the same group" do
      helper_method.should == "received call"
    end
    
    describe "from a nested group" do
      it "is available to examples in a nested group" do
        helper_method.should == "received call"
      end
    end
    
  end
end

Version data entries

34 entries across 34 versions & 5 rubygems

Version Path
dchelimsky-rspec-1.1.11.2 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.11.3 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.11.4 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.11.5 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.11.6 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.11.7 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.12 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.99.1 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.99.13 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.99.2 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.99.3 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.99.4 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.99.5 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.99.6 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.99.7 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.99.8 spec/spec/example/helper_method_spec.rb
dchelimsky-rspec-1.1.99.9 spec/spec/example/helper_method_spec.rb
newbamboo-evented-rspec-1.1.12 spec/spec/example/helper_method_spec.rb
newbamboo-rspec-1.1.12 spec/spec/example/helper_method_spec.rb
rspec-1.2.7 spec/spec/example/helper_method_spec.rb