rmoriz (owner)

Revisions

gist: 30169 Download_button fork
public
Public Clone URL: git://gist.github.com/30169.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Looks like resource_controller may have problems with rails 2.2.2?
 
I'm using "blank", latest revision.
Out of the box, with the vendored Rails 2.1.x all tests work fine.
 
So I did a "rm -rf vendor/rails" and tried it with the gem 2.2.2 version of rails:
 
rake test:functionals
 
(in /private/tmp/the_name_of_my_app)
/opt/local/bin/ruby -Ilib:test "/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb" "test/functional/accounts_controller_test.rb" "test/functional/password_resets_controller_test.rb" "test/functional/people_controller_test.rb" "test/functional/sessions_controller_test.rb"
[DEPRECATION] should_be_restful is deprecated. Please see http://thoughtbot.lighthouseapp.com/projects/5807/tickets/78 for more information.
/private/tmp/the_name_of_my_app/vendor/plugins/resource_controller/lib/resource_controller/class_methods.rb:20:in `undef_method': undefined method `index' for class `PeopleController' (NameError)
from /private/tmp/the_name_of_my_app/vendor/plugins/resource_controller/lib/resource_controller/class_methods.rb:20:in `actions'
from /private/tmp/the_name_of_my_app/vendor/plugins/resource_controller/lib/resource_controller/class_methods.rb:20:in `each'
from /private/tmp/the_name_of_my_app/vendor/plugins/resource_controller/lib/resource_controller/class_methods.rb:20:in `actions'
from /private/tmp/the_name_of_my_app/app/controllers/people_controller.rb:2
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in `require'
from ./test/functional/people_controller_test.rb:2
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:144:in `load_without_new_constant_marking'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:144:in `load'
from /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb:5
from /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb:5:in `each'
from /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb:5
rake aborted!
Command failed with status (1): [/opt/local/bin/ruby -Ilib:test "/opt/local...]
 
(See full trace by running task with --trace)
 
 
 
The next step was to remove the bundled resource_controller version and use the latest github revision - same result