Sha256: cd124ab8fdc7c8f46e1763d75bb9f3dde1e7024d5365d0613dd841f2302c1057

Contents?: true

Size: 543 Bytes

Versions: 32

Compression:

Stored size: 543 Bytes

Contents

require '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

32 entries across 32 versions & 11 rubygems

Version Path
rspec-instructure-1.3.3 spec/spec/example/helper_method_spec.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/spec/spec/example/helper_method_spec.rb
rspec-1.3.2 spec/spec/example/helper_method_spec.rb
rspec-1.3.1 spec/spec/example/helper_method_spec.rb
rspec-1.3.1.rc spec/spec/example/helper_method_spec.rb
rspec-1.3.0 spec/spec/example/helper_method_spec.rb
hubbub-0.0.11 lib/vendor/plugins/rspec/spec/spec/example/helper_method_spec.rb
hubbub-0.0.10 lib/vendor/plugins/rspec/spec/spec/example/helper_method_spec.rb
hubbub-0.0.9 lib/vendor/plugins/rspec/spec/spec/example/helper_method_spec.rb
hubbub-0.0.8 lib/vendor/plugins/rspec/spec/spec/example/helper_method_spec.rb
hubbub-0.0.6 lib/vendor/plugins/rspec/spec/spec/example/helper_method_spec.rb
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/spec/spec/example/helper_method_spec.rb
media-path-0.1.2 vendor/rspec/spec/spec/example/helper_method_spec.rb
simple-templater-0.0.1.3 vendor/rspec/spec/spec/example/helper_method_spec.rb
pupu-0.0.2.pre vendor/rspec/spec/spec/example/helper_method_spec.rb
media-path-0.1.1.pre vendor/rspec/spec/spec/example/helper_method_spec.rb
simple-templater-0.0.1.2 vendor/rspec/spec/spec/example/helper_method_spec.rb
media-path-0.1.1 vendor/rspec/spec/spec/example/helper_method_spec.rb
simple-templater-0.0.1.1 vendor/rspec/spec/spec/example/helper_method_spec.rb
pupu-0.0.2 vendor/rspec/spec/spec/example/helper_method_spec.rb