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/

On 6/28/06, Joel R. [email protected] wrote:

I googled for this issue and it appears that a require is missing or
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

On 8/16/06, David C. [email protected] wrote:

user_controller_test.rb"
local…]

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