waseem ahmad
2009-Jan-07 06:29 UTC
[rspec-users] Error: undefined method `use_transactional_fixtures
Hi, I get this error when I do $spec /spec/any_spec /home/waseem/app/spec/spec_helper.rb:14: undefined method `use_transactional_fixtures='' for #<Spec::Example::Configuration:0xb6d9f218> (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner.rb:184:in `configure'' from /home/waseem/app/spec/spec_helper.rb:10 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from ./spec/controllers/user_sessions_controller_spec.rb:1 from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:14:in `load'' from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:14:in `load_files'' from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:13:in `each'' from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:13:in `load_files'' from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:98:in `run_examples'' from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/command_line.rb:10:in `run'' from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/bin/spec:4 from /usr/bin/spec:19:in `load'' from /usr/bin/spec:19 I googled it and got http://ryandaigle.com/articles/2008/11/19/what-s-new-in-edge-rails-application-rb-duality-is-no-moresee Maxim''s comment What could be possibly wrong? -- Waseem RwrWrwRwrWrwRwrWrwRwrWrwRwwwwwwww............ Blog: http://babygnu.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090107/3e643f4a/attachment.html>
Mischa Fierer
2009-Jan-07 07:23 UTC
[rspec-users] Error: undefined method `use_transactional_fixtures
this may help: http://themomorohoax.com/2008/12/17/rails-2-3-tests On Wed, Jan 7, 2009 at 12:29 AM, waseem ahmad <cougar2149 at gmail.com> wrote:> Hi, > > I get this error when I do > > $spec /spec/any_spec > > /home/waseem/app/spec/spec_helper.rb:14: undefined method > `use_transactional_fixtures='' for #<Spec::Example::Configuration:0xb6d9f218> > (NoMethodError) > from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner.rb:184:in > `configure'' > from /home/waseem/app/spec/spec_helper.rb:10 > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from ./spec/controllers/user_sessions_controller_spec.rb:1 > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:14:in > `load'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:14:in > `load_files'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:13:in > `each'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:13:in > `load_files'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:98:in > `run_examples'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/command_line.rb:10:in > `run'' > from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/bin/spec:4 > from /usr/bin/spec:19:in `load'' > from /usr/bin/spec:19 > > I googled it and got > http://ryandaigle.com/articles/2008/11/19/what-s-new-in-edge-rails-application-rb-duality-is-no-moresee Maxim''s comment > > What could be possibly wrong? > -- > Waseem > RwrWrwRwrWrwRwrWrwRwrWrwRwwwwwwww............ > Blog: http://babygnu.blogspot.com > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090107/156ca73e/attachment.html>
David Chelimsky
2009-Jan-07 09:25 UTC
[rspec-users] Error: undefined method `use_transactional_fixtures
On Wed, Jan 7, 2009 at 12:29 AM, waseem ahmad <cougar2149 at gmail.com> wrote:> Hi, > > I get this error when I do > > $spec /spec/any_spec > > /home/waseem/app/spec/spec_helper.rb:14: undefined method > `use_transactional_fixtures='' for #<Spec::Example::Configuration:0xb6d9f218> > (NoMethodError) > from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner.rb:184:in > `configure'' > from /home/waseem/app/spec/spec_helper.rb:10 > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from ./spec/controllers/user_sessions_controller_spec.rb:1 > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:14:in > `load'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:14:in > `load_files'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:13:in > `each'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:13:in > `load_files'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:98:in > `run_examples'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/command_line.rb:10:in > `run'' > from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/bin/spec:4 > from /usr/bin/spec:19:in `load'' > from /usr/bin/spec:19 > > I googled it and got > http://ryandaigle.com/articles/2008/11/19/what-s-new-in-edge-rails-application-rb-duality-is-no-more > see Maxim''s comment > > What could be possibly wrong?Seems like it''s not loading up rspec-rails'' Configuration object. In order for that to happen implicitly, the specs need to be in any of spec/models, spec/controllers, spec/views, spec/helpers. Is your file in one of those?> -- > Waseem > RwrWrwRwrWrwRwrWrwRwrWrwRwwwwwwww............ > Blog: http://babygnu.blogspot.com
waseem ahmad
2009-Jan-07 09:49 UTC
[rspec-users] Error: undefined method `use_transactional_fixtures
On Wed, Jan 7, 2009 at 2:55 PM, David Chelimsky <dchelimsky at gmail.com>wrote:> Seems like it''s not loading up rspec-rails'' Configuration object. In > order for that to happen implicitly, the specs need to be in any of > spec/models, spec/controllers, spec/views, spec/helpers. Is your file > in one of those? > >Yeah the file is spec/controllers/user_sessions_controller.rb @Mischa: The pointer you gave talks about rails edge. Right now I am on rails 2.1 -- Waseem RwrWrwRwrWrwRwrWrwRwrWrwRwwwwwwww............ Blog: http://babygnu.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090107/0faf8179/attachment.html>
Mark Wilden
2009-Jan-07 18:20 UTC
[rspec-users] Error: undefined method `use_transactional_fixtures
FWIW, I was getting this error yesterday. I completely uninstalled rspec and rspec-rails (including David''s code from GitHub) and reinstalled, and it "went away." ///ark On Wed, Jan 7, 2009 at 1:49 AM, waseem ahmad <cougar2149 at gmail.com> wrote:> > > On Wed, Jan 7, 2009 at 2:55 PM, David Chelimsky <dchelimsky at gmail.com>wrote: > >> Seems like it''s not loading up rspec-rails'' Configuration object. In >> order for that to happen implicitly, the specs need to be in any of >> spec/models, spec/controllers, spec/views, spec/helpers. Is your file >> in one of those? >> >> > Yeah the file is spec/controllers/user_sessions_controller.rb > > @Mischa: The pointer you gave talks about rails edge. Right now I am on > rails 2.1 > > -- > Waseem > RwrWrwRwrWrwRwrWrwRwrWrwRwwwwwwww............ > Blog: http://babygnu.blogspot.com > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090107/96b10976/attachment-0001.html>
David Chelimsky
2009-Jan-07 18:26 UTC
[rspec-users] Error: undefined method `use_transactional_fixtures
On Wed, Jan 7, 2009 at 12:20 PM, Mark Wilden <mark at mwilden.com> wrote:> FWIW, I was getting this error yesterday. I completely uninstalled rspec and > rspec-rails (including David''s code from GitHub) and reinstalled, and it > "went away."Which version did you install after removing everything?> > ///ark > > On Wed, Jan 7, 2009 at 1:49 AM, waseem ahmad <cougar2149 at gmail.com> wrote: >> >> >> On Wed, Jan 7, 2009 at 2:55 PM, David Chelimsky <dchelimsky at gmail.com> >> wrote: >>> >>> Seems like it''s not loading up rspec-rails'' Configuration object. In >>> order for that to happen implicitly, the specs need to be in any of >>> spec/models, spec/controllers, spec/views, spec/helpers. Is your file >>> in one of those? >>> >> >> Yeah the file is spec/controllers/user_sessions_controller.rb >> >> @Mischa: The pointer you gave talks about rails edge. Right now I am on >> rails 2.1 >> >> -- >> Waseem >> RwrWrwRwrWrwRwrWrwRwrWrwRwwwwwwww............ >> Blog: http://babygnu.blogspot.com >> >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Mark Wilden
2009-Jan-07 19:00 UTC
[rspec-users] Error: undefined method `use_transactional_fixtures
On Wed, Jan 7, 2009 at 10:26 AM, David Chelimsky <dchelimsky at gmail.com>wrote:> On Wed, Jan 7, 2009 at 12:20 PM, Mark Wilden <mark at mwilden.com> wrote: > > FWIW, I was getting this error yesterday. I completely uninstalled rspec > and > > rspec-rails (including David''s code from GitHub) and reinstalled, and it > > "went away." > > Which version did you install after removing everything? > >1.1.16, of course. Kidding - 1.1.11. :) ///ark -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090107/205140e4/attachment.html>
waseem ahmad
2009-Jan-08 05:26 UTC
[rspec-users] Error: undefined method `use_transactional_fixtures
I have both the rspec 1.1.11 and rspec-rails 1.1.11 as gems. I had them plugged in my application too. When I removed them from my application the problem was solved. The version of both the gems and plugins are same. Why did this happen? -- Waseem RwrWrwRwrWrwRwrWrwRwrWrwRwwwwwwww............ Blog: http://babygnu.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090108/118c8b3e/attachment.html>
David Chelimsky
2009-Jan-08 13:31 UTC
[rspec-users] Error: undefined method `use_transactional_fixtures
On Wed, Jan 7, 2009 at 11:26 PM, waseem ahmad <cougar2149 at gmail.com> wrote:> I have both the rspec 1.1.11 and rspec-rails 1.1.11 as gems. I had them > plugged in my application too. When I removed them from my application the > problem was solved. The version of both the gems and plugins are same. > > Why did this happen?I haven''t seen the problem of use_transactional_fixtures before, but there were some problems with installing rspec/rspec-rails as gems w/ 1.1.11. This will be fixed in the 1.1.12 release coming shortly. Cheers, David> -- > Waseem > RwrWrwRwrWrwRwrWrwRwrWrwRwwwwwwww............ > Blog: http://babygnu.blogspot.com > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Jason Fb
2010-Feb-26 19:44 UTC
[rspec-users] Error: undefined method `use_transactional_fixtures
This happens when you generate tests pre-Rails 2.3 then upgrade to Rails 2.3. go to test/test_helper.rb and change: class Test::Unit::testCase to: class ActiveSupport::TestCase http://www.datatravels.com/technotes/2009/04/21/rails-error-undefined-method-use_transactional_fix/ waseem ahmad wrote:> Hi, > > I get this error when I do > > $spec /spec/any_spec > > /home/waseem/app/spec/spec_helper.rb:14: undefined method > `use_transactional_fixtures='' for > #<Spec::Example::Configuration:0xb6d9f218> > (NoMethodError) > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner.rb:184:in > `configure'' > from /home/waseem/app/spec/spec_helper.rb:10 > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from ./spec/controllers/user_sessions_controller_spec.rb:1 > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:14:in > `load'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:14:in > `load_files'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:13:in > `each'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:13:in > `load_files'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:98:in > `run_examples'' > from > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/command_line.rb:10:in > `run'' > from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/bin/spec:4 > from /usr/bin/spec:19:in `load'' > from /usr/bin/spec:19 > > I googled it and got > http://ryandaigle.com/articles/2008/11/19/what-s-new-in-edge-rails-application-rb-duality-is-no-moresee > Maxim''s comment > > What could be possibly wrong?-- Posted via http://www.ruby-forum.com/.