Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
test
Gemfile
Gemfile.lock
README.md
Rakefile

README.md

This is an illustration of a draper issue. To reproduce, run:

$ bundle
$ rake test:fast

and you should see:

$ rake test:fast
Run options: --seed 53469

# Running tests:

E

Finished tests in 0.032189s, 31.0665 tests/s, 0.0000 assertions/s.

  1) Error:
test_0001_can test this without puking(ClassroomDecorator):
NoMethodError: undefined method `user_impersonation_path' for #<#<Class:0x007ff3f2dbd9e8>:0x007ff3f2ddc8e8>
    /Users/carolnichols/.rvm/gems/ruby-1.9.3-p327@draper_bug/gems/draper-1.1.0/lib/draper/helper_proxy.rb:27:in `block in define_proxy'
    /Users/carolnichols/.rvm/gems/ruby-1.9.3-p327@draper_bug/gems/draper-1.1.0/lib/draper/helper_proxy.rb:16:in `method_missing'
    /Users/carolnichols/Ruby/draper_bug/classroom_decorator.rb:5:in `linked_name'
    /Users/carolnichols/Ruby/draper_bug/test/fast/classroom_decorator_test.rb:16:in `block (2 levels) in <top (required)>'

1 tests, 0 assertions, 0 failures, 1 errors, 0 skips
rake aborted!
Command failed with status (1): [ruby -I"lib:test" -I"/Users/carolnichols/.rvm/gems/ruby-1.9.3-p327@global/gems/rake-10.0.3/lib" "/Users/carolnichols/.rvm/gems/ruby-1.9.3-p327@global/gems/rake-10.0.3/lib/rake/rake_test_loader.rb" "test/fast/**/*_test.rb" ]
/Users/carolnichols/.rvm/gems/ruby-1.9.3-p327@draper_bug/bin/ruby_noexec_wrapper:14:in `eval'
/Users/carolnichols/.rvm/gems/ruby-1.9.3-p327@draper_bug/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => test:fast
(See full trace by running task with --trace)

I'm looking for a way for this test to not error in this way without having to load all of Rails.

Something went wrong with that request. Please try again.