Sha256: 783412e1cafadf4b15d0744aae10ae592a0b41a11f912b38936bd2d73c58de38

Contents?: true

Size: 669 Bytes

Versions: 19

Compression:

Stored size: 669 Bytes

Contents

require File.join(File.dirname(__FILE__), "acceptance_test_helper")
require 'mocha'

class Bug21563Test < Test::Unit::TestCase
  
  include AcceptanceTest
  
  def setup
    setup_acceptance_test
  end
  
  def teardown
    teardown_acceptance_test
  end
  
  def test_should_allow_expected_method_name_to_be_a_string
    test_result = run_test do
      mock = mock()
      mock.expects('wibble')
      mock.wibble
    end
    assert_passed(test_result)
  end
  
  def test_should_allow_stubbed_method_name_to_be_a_string
    test_result = run_test do
      mock = mock()
      mock.stubs('wibble')
      mock.wibble
    end
    assert_passed(test_result)
  end
  
end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
hashrocket-clearance-0.4.0 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
hashrocket-clearance-0.4.1 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
hashrocket-clearance-0.4.2 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
hashrocket-clearance-0.4.3 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
thoughtbot-clearance-0.2.2 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
thoughtbot-clearance-0.2.3 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
thoughtbot-clearance-0.2.4 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
thoughtbot-clearance-0.2.5 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
thoughtbot-clearance-0.2.6 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
thoughtbot-clearance-0.2.7 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
thoughtbot-clearance-0.2.8 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
thoughtbot-clearance-0.2.9 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
thoughtbot-clearance-0.3.0 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
thoughtbot-clearance-0.3.1 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
thoughtbot-clearance-0.3.2 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
thoughtbot-clearance-0.3.3 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
thoughtbot-clearance-0.3.4 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/bug_21465_test.rb
mocha-0.9.1 test/acceptance/bug_21465_test.rb
mocha-0.9.2 test/acceptance/bug_21465_test.rb