# Do fixture\_scenarios and RSpec peacibly coexist?

**URL:** <https://www.ruby-forum.com/t/do-fixture-scenarios-and-rspec-peacibly-coexist/115156>\
**Category:** Rails\
**Created:** [September 21, 2007, 4:49am UTC](https://www.ruby-forum.com/t/do-fixture-scenarios-and-rspec-peacibly-coexist/115156 "2007-09-21T04:49:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [September 21, 2007, 4:49am UTC](https://www.ruby-forum.com/t/do-fixture-scenarios-and-rspec-peacibly-coexist/115156/1 "2007-09-21T04:49:33Z")

</div>

Railsters:

I just installed fixture\_scenarios …

[http://fixture-scenarios.googlecode.com/svn/trunk/fixture\_scenarios](http://fixture-scenarios.googlecode.com/svn/trunk/fixture_scenarios)

…into a project with some RSpec specifications. They all went  
kablooey.

I didn’t even create a scenario; the system just started calling its  
version  
of fixtures(). The normal tests pass and the RSpec ones unanimously  
emit:

TypeError in ‘Context (verbose situation…)’  
can’t convert nil into String  
…lib/fixture\_scenarios.rb:108:in `open' ..lib/fixture_scenarios.rb:108:in `read\_fixture\_files’  
…lib/fixture\_scenarios.rb:66:in `initialize' ..lib/fixture_scenarios.rb:29:in `create\_fixtures’  
…lib/fixture\_scenarios.rb:28:in `create_fixtures' ..lib/fixture_scenarios.rb:26:in `create\_fixtures’  
…lib/fixture\_scenarios.rb:257:in `load_fixtures' plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/model.rb:12:in `before\_eval’

The project is heavily scenario-dependent, so if it comes to a choice we  
know which one we will save and which we will lose…

Has anyone encountered this? Can’t fixture\_scenarios and RSpec live  
together  
in peace and harmony?

–  
Phlip

---

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [September 23, 2007, 7:20pm UTC](https://www.ruby-forum.com/t/do-fixture-scenarios-and-rspec-peacibly-coexist/115156/2 "2007-09-23T19:20:50Z")

</div>

On 9/20/07, Phlip [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> of fixtures(). The normal tests pass and the RSpec ones unanimously emit:  
> plugins/rspec\_on\_rails/lib/spec/rails/dsl/behaviour/model.rb:12:in  
> `before\_eval’
> 
> The project is heavily scenario-dependent, so if it comes to a choice we  
> know which one we will save and which we will lose…
> 
> Has anyone encountered this? Can’t fixture\_scenarios and RSpec live together  
> in peace and harmony?

Sure they can. Just grab the current trunk or the next release (1.1.0

- coming soon)
