Forum: RSpec fixture_scenarios problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6b71251b5261e1fe3142bf620e573724?d=identicon&s=25 Giuseppe Bertini (giuseb)
on 2009-01-21 08:57
Hello there,

is anyone still using fixture_scenarios with RSpec these days? They
don't seem to coexist peacefully anymore.

I just created a new rails (2.2.2) app, generated an rspec_scaffold
(with v. 1.1.12), and verified that all specs pass.

But if I then install the fixture_scenarios plugin:

script/plugin install
http://fixture-scenarios.googlecode.com/svn/trunk/...

all specs break, with the first error line being:

/Users/giuseppe/trails/witest/vendor/plugins/fixture_scenarios/lib/fixture_scenarios.rb:37
:in `create_fixtures'

(more details upon request)

On the other hand, the same plugin used to work with RSpec 1.1.4

Has anyone encountered/solved this problem?
Thanks in advance,

Giuseppe
369b9fd2a0d9e7cdbc60907a2a056ad9?d=identicon&s=25 Scott Taylor (Guest)
on 2009-01-21 09:47
(Received via mailing list)
Giuseppe Bertini wrote:
> script/plugin install
> http://fixture-scenarios.googlecode.com/svn/trunk/...
>
> all specs break, with the first error line being:
>
> 
/Users/giuseppe/trails/witest/vendor/plugins/fixture_scenarios/lib/fixture_scenarios.rb:37
> :in `create_fixtures'
>
> (more details upon request)
>

Is the git tree any different than the svn one?

http://github.com/mojombo/fixture-scenarios/tree/master

Scott
6b71251b5261e1fe3142bf620e573724?d=identicon&s=25 Giuseppe Bertini (giuseb)
on 2009-01-26 07:56
> Is the git tree any different than the svn one?
> http://github.com/mojombo/fixture-scenarios/tree/master
> Scott

Hi Scott, I checked, and the two trees are actually identical.

It seems that while fixture_scenarios has not changed since around April
2007, changes in rspec since v.1.1.4 have created (or revealed) an
incompatibility.

Thanks in advance for any advice on this problem.

Giuseppe
27bfbfa5c589042aad703758a2211179?d=identicon&s=25 Pelle Braendgaard (Guest)
on 2009-01-26 08:55
(Received via mailing list)
It was this change included in rspec 1.1.12 that caused the problem:
http://rspec.lighthouseapp.com/projects/5645-rspec...

Basically rspec extends ActiveSupport::TestCase instead of
Test::Unit:TestCase.

I have made a fix to fixture scenarios which fixes that particular
problem. I've made it available here:

http://github.com/pelle/fixture-scenarios/tree/master

All it does is change fixture scenarios to use ActiveSupport::TestCase
as well and it works for me.

P

On Sun, Jan 25, 2009 at 10:56 PM, Giuseppe Bertini
<lists@ruby-forum.com> wrote:
> Thanks in advance for any advice on this problem.
>
> Giuseppe
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



--
http://agree2.com - Reach Agreement!
http://extraeagle.com - Solutions for the electronic Extra Legal world
http://stakeventures.com - Bootstrapping blog
6b71251b5261e1fe3142bf620e573724?d=identicon&s=25 Giuseppe Bertini (giuseb)
on 2009-01-27 00:00
Pelle Braendgaard wrote:
> I have made a fix to fixture scenarios which fixes that particular
> problem. I've made it available here:
>
> http://github.com/pelle/fixture-scenarios/tree/master

It works!
Thank you very, very much, Pelle.

Giuseppe
This topic is locked and can not be replied to.