Joel Reymont
2006-Jun-28 16:47 UTC
[Rails] undefined method `use_transactional_fixtures=''
Folks, I checked my test_helper.rb and it has self.use_transactional_fixtures = true My code was generated with 1.1.2 and I''m using 1.1.3 right now after but the error persists. I googled for this issue and it appears that a require is missing or something like that. I can''t figure it out, please help! /opt/local/bin/ruby -Ilib:test "/opt/local/lib/ruby/gems/1.8/gems/ rake-0.7.1/lib/rake/rake_test_loader.rb" "test/functional/ admin_controller_test.rb" "test/functional/error_controller_test.rb" "test/functional/poll_controller_test.rb" "test/functional/ user_controller_test.rb" ./test/functional/../test_helper.rb:18: undefined method `use_transactional_fixtures='' for Test::Unit::TestCase:Class (NoMethodError) from ./test/functional/admin_controller_test.rb:1 from /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/ rake_test_loader.rb:5 from /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/ rake_test_loader.rb:5 rake aborted! Command failed with status (1): [/opt/local/bin/ruby -Ilib:test "/opt/ local...] -- http://wagerlabs.com/
David Clements
2006-Aug-16 19:55 UTC
[Rails] undefined method `use_transactional_fixtures=''
On 6/28/06, Joel Reymont <joelr1@gmail.com> wrote:> > Folks, > > I checked my test_helper.rb and it has > > self.use_transactional_fixtures = true > > My code was generated with 1.1.2 and I''m using 1.1.3 right now after > but the error persists. > > I googled for this issue and it appears that a require is missing or > something like that. I can''t figure it out, please help! > > /opt/local/bin/ruby -Ilib:test "/opt/local/lib/ruby/gems/1.8/gems/ > rake-0.7.1/lib/rake/rake_test_loader.rb" "test/functional/ > admin_controller_test.rb" "test/functional/error_controller_test.rb" > "test/functional/poll_controller_test.rb" "test/functional/ > user_controller_test.rb" > ./test/functional/../test_helper.rb:18: undefined method > `use_transactional_fixtures='' for Test::Unit::TestCase:Class > (NoMethodError) > from ./test/functional/admin_controller_test.rb:1 > from /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/ > rake_test_loader.rb:5 > from /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/ > rake_test_loader.rb:5 > rake aborted! > Command failed with status (1): [/opt/local/bin/ruby -Ilib:test "/opt/ > local...] > > -- > http://wagerlabs.com/We have the same issue here runny rails 1.1.6 and ruby 1.8.2 on windows? Any luck in finding a solution? Dave _______________________________________________> Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060816/bf4d880a/attachment.html
David Clements
2006-Aug-17 16:21 UTC
[Rails] undefined method `use_transactional_fixtures=''
On 8/16/06, David Clements <clements@colorado.edu> wrote:> > > > On 6/28/06, Joel Reymont <joelr1@gmail.com> wrote: > > > > Folks, > > > > I checked my test_helper.rb and it has > > > > self.use_transactional_fixtures = true > > > > My code was generated with 1.1.2 and I''m using 1.1.3 right now after > > but the error persists. > > > > I googled for this issue and it appears that a require is missing or > > something like that. I can''t figure it out, please help! > > > > /opt/local/bin/ruby -Ilib:test "/opt/local/lib/ruby/gems/1.8/gems/ > > rake-0.7.1/lib/rake/rake_test_loader.rb" "test/functional/ > > admin_controller_test.rb" "test/functional/error_controller_test.rb" > > "test/functional/poll_controller_test.rb" "test/functional/ > > user_controller_test.rb" > > ./test/functional/../test_helper.rb:18: undefined method > > `use_transactional_fixtures='' for Test::Unit::TestCase:Class > > (NoMethodError) > > from ./test/functional/admin_controller_test.rb:1 > > from /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/ > > rake_test_loader.rb:5 > > from /opt/local/lib/ruby/gems/1.8/gems/rake- 0.7.1/lib/rake/ > > rake_test_loader.rb:5 > > rake aborted! > > Command failed with status (1): [/opt/local/bin/ruby -Ilib:test "/opt/ > > local...] > > > > -- > > http://wagerlabs.com/ > > > > We have the same issue here runny rails 1.1.6 and ruby 1.8.2 on windows? > Any luck in finding a solution? > > Dave >Okay, thanks for the help Joel. We solved this problem by running the app and seeing the actuall error. Our issue was that iconv is standard on *nix and not on windows. Seems that there should be some way to write a test that would spot these kinds of issues. Thanks, Dave _______________________________________________> > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060817/1e0d555f/attachment.html