[rspec-users] Error against latest trunk while testing via spec for model

aslak hellesoy
Tue, 13 Feb 2007 08:11:47 -0000

Rails version? svn revision?

On 2/13/07, Deepak Jois <deepak.jois at gmail.com>
wrote:
> On 2/13/07, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> > We need the backtrace. Can you run again with --backtrace
> >
> >
> ==============> 1)
> TypeError in ''Given a generated venue_spec.rb with fixtures loaded
> fixtures should load two Venues''
> can''t convert nil into String
>
/home/deepak/personalcode/worlds/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:251:in
> `join''
>
/home/deepak/personalcode/worlds/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:251:in
> `create_fixtures''
>
/home/deepak/personalcode/worlds/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:250:in
> `create_fixtures''
>
/home/deepak/personalcode/worlds/config/../vendor/rails/activerecord/lib/active_record/base.rb:890:in
> `silence''
>
/home/deepak/personalcode/worlds/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:248:in
> `create_fixtures''
>
/home/deepak/personalcode/worlds/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:581:in
> `load_fixtures''
>
/home/deepak/personalcode/worlds/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:535:in
> `setup_with_fixtures''
>
/home/deepak/personalcode/worlds/vendor/plugins/rspec/lib/spec/runner/context_eval.rb:131:in
> `create_block_from_parts''
>
/home/deepak/personalcode/worlds/vendor/plugins/rspec/lib/spec/runner/context_eval.rb:129:in
> `create_block_from_parts''
>
/home/deepak/personalcode/worlds/vendor/plugins/rspec/lib/spec/runner/specification.rb:47:in
> `setup_spec''
>
/home/deepak/personalcode/worlds/vendor/plugins/rspec/lib/spec/runner/specification.rb:29:in
> `run''
>
/home/deepak/personalcode/worlds/vendor/plugins/rspec/lib/spec/runner/context.rb:58:in
> `run''
>
/home/deepak/personalcode/worlds/vendor/plugins/rspec/lib/spec/runner/context.rb:55:in
> `run''
>
/home/deepak/personalcode/worlds/vendor/plugins/rspec/lib/spec/runner/context_runner.rb:23:in
> `run''
>
/home/deepak/personalcode/worlds/vendor/plugins/rspec/lib/spec/runner/context_runner.rb:22:in
> `run''
>
/home/deepak/personalcode/worlds/vendor/plugins/rspec/lib/spec/runner/command_line.rb:27:in
> `run''
> vendor/plugins/rspec/bin/spec:4:
> =======================>
> FWIW, here is my fixtures file file
>
> ======> one:
>  id: 1
>  name: LT1
>  description: Lecture Theatre 1
>  active: 1
> two:
>  id: 2
>  name: LT2
>  description: Lecture Theatre 2
>  active: 0
> ========>
> The schema of the table matches the fields in the YAML file