#262 new
Andrew Pennebaker

`bundle exec rake test` failing in Mac OS X

Reported by Andrew Pennebaker | May 8th, 2013 @ 11:09 PM

When I try to run the unit tests in Mac OS X, I get `require': cannot load such file -- redcloth_scan (LoadError).

Trace:

$ bundle exec rake test --trace ** Invoke test (first_time) ** Execute test /usr/local/Cellar/ruby/1.9.3-p385/bin/ruby -S rspec ./spec/benchmark_spec.rb ./spec/custom_tags_spec.rb ./spec/erb_spec.rb ./spec/extension_spec.rb ./spec/formatters/class_filtered_html_spec.rb ./spec/formatters/filtered_html_spec.rb ./spec/formatters/html_no_breaks_spec.rb ./spec/formatters/html_spec.rb ./spec/formatters/id_filtered_html_spec.rb ./spec/formatters/latex_spec.rb ./spec/formatters/lite_mode_html_spec.rb ./spec/formatters/no_span_caps_html_spec.rb ./spec/formatters/sanitized_html_spec.rb ./spec/formatters/style_filtered_html_spec.rb ./spec/parser_spec.rb /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in require': cannot load such file -- redcloth_scan (LoadError) Couldn't load redcloth_scan The $LOAD_PATH was: /Users/andrew/Desktop/src/redcloth/spec/../lib /Users/andrew/Desktop/src/redcloth/spec /Users/andrew/Desktop/src/redcloth/lib /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/site_ruby/1.9.1 /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/site_ruby/1.9.1/x86_64-darwin12.2.0 /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/site_ruby /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/vendor_ruby/1.9.1 /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/vendor_ruby/1.9.1/x86_64-darwin12.2.0 /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/vendor_ruby /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/1.9.1 /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/1.9.1/x86_64-darwin12.2.0 from /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:inrequire' from /Users/andrew/Desktop/src/redcloth/lib/redcloth.rb:13:in <top (required)>' from /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:inrequire' from /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in require' from /Users/andrew/Desktop/src/redcloth/spec/spec_helper.rb:2:in' from /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:inrequire' from /Users/andrew/Desktop/src/redcloth/spec/benchmark_spec.rb:1:in <top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:inload' from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in block in load_spec_files' from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:ineach' from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in load_spec_files' from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:22:inrun' from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:in run' from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:inblock in autorun' rake aborted!
/usr/local/Cellar/ruby/1.9.3-p385/bin/ruby -S rspec ./spec/benchmark_spec.rb ./spec/custom_tags_spec.rb ./spec/erb_spec.rb ./spec/extension_spec.rb ./spec/formatters/class_filtered_html_spec.rb ./spec/formatters/filtered_html_spec.rb ./spec/formatters/html_no_breaks_spec.rb ./spec/formatters/html_spec.rb ./spec/formatters/id_filtered_html_spec.rb ./spec/formatters/latex_spec.rb ./spec/formatters/lite_mode_html_spec.rb ./spec/formatters/no_span_caps_html_spec.rb ./spec/formatters/sanitized_html_spec.rb ./spec/formatters/style_filtered_html_spec.rb ./spec/parser_spec.rb failed /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb:156:in run_task' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb:124:inblock (2 levels) in initialize' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:58:in verbose' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb:122:inblock in initialize' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in call' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:inblock in execute' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in each' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:inexecute' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:184:in block in invoke_with_call_chain' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/1.9.1/monitor.rb:211:inmon_synchronize' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in invoke_with_call_chain' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:170:ininvoke' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:143:in invoke_task' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:inblock (2 levels) in top_level' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in each' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:inblock in top_level' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:110:in run_with_threads' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:95:intop_level' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:73:in block in run' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:instandard_exception_handling' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in run' /usr/local/Cellar/ruby/1.9.3-p385/lib/ruby/gems/1.9.1/gems/rake-10.0.4/bin/rake:33:in' /usr/local/bin/rake:23:in load' /usr/local/bin/rake:23:in' Tasks: TOP => test

System:

$ specs ruby os Specs:

specs 0.4
https://github.com/mcandre/specs#readme

bundle --version
Bundler version 1.3.5

gem --version
2.0.3

ruby --version
ruby 1.9.3p385 (2013-02-06 revision 39114) [x86_64-darwin12.2.0]

system_profiler SPSoftwareDataType | grep 'System Version'
System Version: OS X 10.8.3 (12D78)

Comments and changes to this ticket

  • Jason Garber

    Jason Garber May 9th, 2013 @ 09:36 AM

    Usually that means it wasn't compiled first. Did it successfully compile
    before you ran the tests? I thought that was a dependency of the test task,
    but perhaps I'm wrong.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins

People watching this ticket

Pages