Sha256: 86e41e6cc9b87903e0575e3b461c84d3c0399182b67f4c8381df7f9663493634

Contents?: true

Size: 461 Bytes

Versions: 8

Compression:

Stored size: 461 Bytes

Contents

require File.expand_path('../acceptance_test_helper', __FILE__)

class Bug21563Test < Mocha::TestCase
  include AcceptanceTest

  def setup
    setup_acceptance_test
  end

  def teardown
    teardown_acceptance_test
  end

  def test_should_allow_stubbing_of_verified_method
    test_result = run_as_test do
      object = Object.new
      object.stubs(:verified?).returns(false)
      assert !object.verified?
    end
    assert_passed(test_result)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mocha-1.11.2 test/acceptance/bug_21563_test.rb
mocha-1.11.1 test/acceptance/bug_21563_test.rb
mocha-1.11.0 test/acceptance/bug_21563_test.rb
mocha-1.10.2 test/acceptance/bug_21563_test.rb
mocha-1.10.1 test/acceptance/bug_21563_test.rb
mocha-1.10.0 test/acceptance/bug_21563_test.rb
mocha-1.10.0.beta.1 test/acceptance/bug_21563_test.rb
mocha-1.10.0.alpha test/acceptance/bug_21563_test.rb