Sha256: f701bdd2885ad650bc65fc350179d2bbbe17b395b961deb9095bacdcaee7d742

Contents?: true

Size: 538 Bytes

Versions: 3

Compression:

Stored size: 538 Bytes

Contents

require File.dirname(__FILE__)  + '/../lib/spec'

context "Rspec allow you to define custom methods" do
  specify "Rspec should allow you to define methods" do
    a_method
    @a_method_called.should.be true
  end

  def a_method
    @a_method_called = true
  end
end
require File.dirname(__FILE__)  + '/../lib/spec'

context "Rspec allow you to define custom methods" do
  specify "Rspec should allow you to define methods" do
    a_method
    @a_method_called.should.be true
  end

  def a_method
    @a_method_called = true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspec-0.5.14 examples/custom_method_spec.rb
rspec-0.5.15 examples/custom_method_spec.rb
rspec-0.5.16 examples/custom_method_spec.rb