Skip to content

Instantly share code, notes, and snippets.

@terceiro
Created May 11, 2011 15:28
Show Gist options
  • Select an option

  • Save terceiro/966675 to your computer and use it in GitHub Desktop.

Select an option

Save terceiro/966675 to your computer and use it in GitHub Desktop.
shoulda-context automated tests broken on ruby 1.9
$ rake1.9.1
(in /home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context)
* DEFERRED: Context should be able to setup a should eventually in a class method.
* DEFERRED: Should should pass, since it's a should_eventually.
* DEFERRED: Context should pass, since it's unimplemented.
* DEFERRED: Context should not require a block when using should_eventually.
* DEFERRED: Context should pass without a block, as that causes it to piggyback to should_eventually.
* DEFERRED: context for testing should piggybacking should call should_eventually as we are not passing a block.
* DEFERRED: context with nested subcontexts should only print this statement once for a should_eventually.
Loaded suite /usr/lib/ruby/1.9.1/rake/rake_test_loader
Started
.....F.F....F.F.F.........E..EEE..EEEEEEE.EEEEEEEEEEEEEEEE...F.F......FF...F....................
Finished in 0.178008 seconds.
1) Failure:
test: another context with setup block should have name set right. (ContextTest) [test/shoulda/context_test.rb:73]:
Expected /^test: another context with setup block/ to match "#<ContextTest:0x9f3fcb0>".
2) Failure:
test: context with method definition should have name set right. (ContextTest) [test/shoulda/context_test.rb:87]:
Expected /^test: context with method definition/ to match "#<ContextTest:0x9f3e89c>".
3) Failure:
test: context with setup block and a subcontext should be named correctly. (ContextTest) [test/shoulda/context_test.rb:39]:
Expected /^test: context with setup block and a subcontext should be named correctly/ to match "#<ContextTest:0x9f31c00>".
4) Failure:
test: context with setup block should have name set right. (ContextTest) [test/shoulda/context_test.rb:30]:
Expected /^test: context with setup block/ to match "#<ContextTest:0x9f2e668>".
5) Failure:
test: context with setup block with a subcontext made by a macro should have name set right. (ContextTest) [test/shoulda/context_test.rb:49]:
Expected /^test: context with setup block with a subcontext made by a macro should have name set right/ to match "#<ContextTest:0x9f2d038>".
6) Error:
test: a matching matcher should fail when given to assert_accepts with non-matching message. (HelpersTest):
NameError: uninitialized constant Test::Unit::AssertionFailedError
test/shoulda/helpers_test.rb:58:in `block (2 levels) in <class:HelpersTest>'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:398:in `call'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:398:in `block in create_test_from_should_hash'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:27:in `run'
7) Error:
test: a matching matcher when given to assert_rejects should fail. (HelpersTest):
NameError: uninitialized constant Test::Unit::AssertionFailedError
test/shoulda/helpers_test.rb:67:in `rescue in block (3 levels) in <class:HelpersTest>'
test/shoulda/helpers_test.rb:65:in `block (3 levels) in <class:HelpersTest>'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:416:in `call'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:416:in `block in run_current_setup_blocks'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:415:in `each'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:415:in `run_current_setup_blocks'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:397:in `block in create_test_from_should_hash'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:27:in `run'
8) Error:
test: a matching matcher when given to assert_rejects should use the error message from the matcher. (HelpersTest):
NameError: uninitialized constant Test::Unit::AssertionFailedError
test/shoulda/helpers_test.rb:67:in `rescue in block (3 levels) in <class:HelpersTest>'
test/shoulda/helpers_test.rb:65:in `block (3 levels) in <class:HelpersTest>'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:416:in `call'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:416:in `block in run_current_setup_blocks'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:415:in `each'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:415:in `run_current_setup_blocks'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:397:in `block in create_test_from_should_hash'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:27:in `run'
9) Error:
test: a non-matching matcher should fail when given to assert_rejects with a non-matching message. (HelpersTest):
NameError: uninitialized constant Test::Unit::AssertionFailedError
test/shoulda/helpers_test.rb:97:in `block (2 levels) in <class:HelpersTest>'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:398:in `call'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:398:in `block in create_test_from_should_hash'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:27:in `run'
10) Error:
test: a non-matching matcher when given to assert_accepts should fail. (HelpersTest):
NameError: uninitialized constant Test::Unit::AssertionFailedError
test/shoulda/helpers_test.rb:106:in `rescue in block (3 levels) in <class:HelpersTest>'
test/shoulda/helpers_test.rb:104:in `block (3 levels) in <class:HelpersTest>'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:416:in `call'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:416:in `block in run_current_setup_blocks'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:415:in `each'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:415:in `run_current_setup_blocks'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:397:in `block in create_test_from_should_hash'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:27:in `run'
11) Error:
test: a non-matching matcher when given to assert_accepts should use the error message from the matcher. (HelpersTest):
NameError: uninitialized constant Test::Unit::AssertionFailedError
test/shoulda/helpers_test.rb:106:in `rescue in block (3 levels) in <class:HelpersTest>'
test/shoulda/helpers_test.rb:104:in `block (3 levels) in <class:HelpersTest>'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:416:in `call'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:416:in `block in run_current_setup_blocks'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:415:in `each'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:415:in `run_current_setup_blocks'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:397:in `block in create_test_from_should_hash'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:27:in `run'
12) Error:
test: an array of values should be the same as another array, ordered differently. (HelpersTest):
NameError: uninitialized constant Test::Unit::AssertionFailedError
test/shoulda/helpers_test.rb:26:in `block (2 levels) in <class:HelpersTest>'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:398:in `call'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:398:in `block in create_test_from_should_hash'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:27:in `run'
13) Error:
test: an array of values should contain "abc". (HelpersTest):
NameError: uninitialized constant Test::Unit::AssertionFailedError
test/shoulda/helpers_test.rb:12:in `block (3 levels) in <class:HelpersTest>'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:398:in `call'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:398:in `block in create_test_from_should_hash'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:27:in `run'
14) Error:
test: an array of values should contain /b/. (HelpersTest):
NameError: uninitialized constant Test::Unit::AssertionFailedError
test/shoulda/helpers_test.rb:12:in `block (3 levels) in <class:HelpersTest>'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:398:in `call'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:398:in `block in create_test_from_should_hash'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:27:in `run'
15) Error:
test: an array of values should contain 3. (HelpersTest):
NameError: uninitialized constant Test::Unit::AssertionFailedError
test/shoulda/helpers_test.rb:12:in `block (3 levels) in <class:HelpersTest>'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:398:in `call'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:398:in `block in create_test_from_should_hash'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:27:in `run'
16) Error:
test: an array of values should not contain 'wtf'. (HelpersTest):
NameError: uninitialized constant Test::Unit::AssertionFailedError
test/shoulda/helpers_test.rb:20:in `block (2 levels) in <class:HelpersTest>'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:398:in `call'
/home/terceiro/src/debian/pkg-ruby-extras/ruby-shoulda-context/lib/shoulda/context/context.rb:398:in `block in create_test_from_should_hash'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:27:in `run'
17) Error:
test: a should block with a matcher should fail with a failing matcher. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
18) Error:
test: a should block with a matcher should generate a test using the matcher's description. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
19) Error:
test: a should block with a matcher should pass with a passing matcher. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
20) Error:
test: a should block with a matcher should provide the subject. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
21) Error:
test: a should block with a matcher within a context should fail with a failing matcher. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
22) Error:
test: a should block with a matcher within a context should generate a test using the matcher's description. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
23) Error:
test: a should block with a matcher within a context should pass with a passing matcher. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
24) Error:
test: a should block with a matcher within a context should provide the subject. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
25) Error:
test: a should_not block with a matcher should fail with a passing matcher. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
26) Error:
test: a should_not block with a matcher should generate a test using the matcher's description. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
27) Error:
test: a should_not block with a matcher should pass with a failing matcher. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
28) Error:
test: a should_not block with a matcher should provide the subject. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
29) Error:
test: a should_not block with a matcher within a context should fail with a passing matcher. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
30) Error:
test: a should_not block with a matcher within a context should generate a test using the matcher's description. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
31) Error:
test: a should_not block with a matcher within a context should pass with a failing matcher. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
32) Error:
test: a should_not block with a matcher within a context should provide the subject. (ShouldMatcherTest):
NameError: uninitialized constant Test::Unit::TestResult
test/shoulda/context_test.rb:218:in `setup'
/usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_142_to_172.rb:26:in `run'
33) Failure:
test: Another context with setup block should have name set right. (ShouldTest) [test/shoulda/should_test.rb:114]:
Expected /^test: Another context with setup block/ to match "#<ShouldTest:0x9e15e34>".
34) Failure:
test: Context a macro should have the tests named correctly. (ShouldTest) [test/shoulda/should_test.rb:43]:
Expected /^test: Context a macro should have the tests named correctly/ to match "#<ShouldTest:0x9e144d0>".
35) Failure:
test: Context with a subcontext a macro should have the tests named correctly. (ShouldTest) [test/shoulda/should_test.rb:43]:
Expected /^test: Context with a subcontext a macro should have the tests named correctly/ to match "#<ShouldTest:0x9e04cd8>".
36) Failure:
test: Context with setup block and a subcontext should be named correctly. (ShouldTest) [test/shoulda/should_test.rb:94]:
Expected /^test: Context with setup block and a subcontext should be named correctly/ to match "#<ShouldTest:0x9e03b6c>".
37) Failure:
test: Context with setup block should have name set right. (ShouldTest) [test/shoulda/should_test.rb:85]:
Expected /^test: Context with setup block/ to match "#<ShouldTest:0x9dfcb3c>".
96 tests, 106 assertions, 10 failures, 27 errors, 0 skips
Test run options: --seed 20277
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.9.1 -I"lib:lib:test" "/usr/...]
/usr/lib/ruby/1.9.1/rake.rb:993:in `block in sh'
/usr/lib/ruby/1.9.1/rake.rb:1008:in `call'
/usr/lib/ruby/1.9.1/rake.rb:1008:in `sh'
/usr/lib/ruby/1.9.1/rake.rb:1092:in `sh'
/usr/lib/ruby/1.9.1/rake.rb:1027:in `ruby'
/usr/lib/ruby/1.9.1/rake.rb:1092:in `ruby'
/usr/lib/ruby/1.9.1/rake/testtask.rb:115:in `block (2 levels) in define'
/usr/lib/ruby/1.9.1/rake.rb:1110:in `verbose'
/usr/lib/ruby/1.9.1/rake/testtask.rb:100:in `block in define'
/usr/lib/ruby/1.9.1/rake.rb:634:in `call'
/usr/lib/ruby/1.9.1/rake.rb:634:in `block in execute'
/usr/lib/ruby/1.9.1/rake.rb:629:in `each'
/usr/lib/ruby/1.9.1/rake.rb:629:in `execute'
/usr/lib/ruby/1.9.1/rake.rb:595:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/usr/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain'
/usr/lib/ruby/1.9.1/rake.rb:605:in `block in invoke_prerequisites'
/usr/lib/ruby/1.9.1/rake.rb:602:in `each'
/usr/lib/ruby/1.9.1/rake.rb:602:in `invoke_prerequisites'
/usr/lib/ruby/1.9.1/rake.rb:594:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/usr/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain'
/usr/lib/ruby/1.9.1/rake.rb:581:in `invoke'
/usr/lib/ruby/1.9.1/rake.rb:2041:in `invoke_task'
/usr/lib/ruby/1.9.1/rake.rb:2019:in `block (2 levels) in top_level'
/usr/lib/ruby/1.9.1/rake.rb:2019:in `each'
/usr/lib/ruby/1.9.1/rake.rb:2019:in `block in top_level'
/usr/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
/usr/lib/ruby/1.9.1/rake.rb:2013:in `top_level'
/usr/lib/ruby/1.9.1/rake.rb:1992:in `run'
/usr/bin/rake1.9.1:31:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment