[rspec-users] rSpec on Rails 1.2?

s.ross cwdinfo at gmail.com
Fri Nov 24 12:51:09 EST 2006


The change that broke rspec_on_rails was in 5604. Here's the svn diff:

--- activerecord/lib/active_record/fixtures.rb  (revision 5603)
+++ activerecord/lib/active_record/fixtures.rb  (revision 5604)
@@ -436,7 +436,7 @@
module Test #:nodoc:
    module Unit #:nodoc:
      class TestCase #:nodoc:
-      cattr_accessor :fixture_path
+      class_inheritable_accessor :fixture_path
        class_inheritable_accessor :fixture_table_names
        class_inheritable_accessor :fixture_class_names
        class_inheritable_accessor :use_transactional_fixtures

Poking around in Rails, the nil that can't be converted to a string  
is (d'oh) fixture_path.


On Nov 24, 2006, at 3:12 AM, Mathias Biilmann Christensen wrote:

> I have nearly the same problem, though for me it seems to be fixture
> related.
>
> Every context that includes fixtures breaks with the 'can't convert
> nil into String'  TypeError.
>
> I tried building the trunk version of RSpec and installing the head
> version of the rails plugin, but no luck.
>
> Really shouldn't have decided to use RSpec for my attempt at a rapid
> programming contest submission!
>
> Regards,
> Mathias
>
>
> On Nov 24, 2006, at 8:11 AM, s.ross wrote:
>
>> I just updated my Rails install to the most current Edge and my
>> controller specs fail:
>>
>> 1)
>> TypeError in 'The User Controller should be a user controller'
>> can't convert nil into String
>>
>> Each spec fails the same way.
>>
>> <context string> <spec string>
>> can't convert nil into String
>>
>> Any ideas what's up with this?
>>
>> Thanks,
>>
>> s.ross
>> _______________________________________________
>> 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



More information about the rspec-users mailing list