Yi Wen wrote:
> I do this:
>
> Fixtures.reset_cache
> fixtures_folder = File.join(RAILS_ROOT, 'test', 'fixtures')
> fixtures = Dir[File.join(fixtures_folder, '*.yml')].map {|f|
> File.basename(f, '.yml') }
> fixture_class_names = {} # or whatever needed
> Fixtures.create_fixtures(fixtures_folder,
I do this:
Fixtures.reset_cache
fixtures_folder = File.join(RAILS_ROOT, 'test', 'fixtures')
fixtures = Dir[File.join(fixtures_folder, '*.yml')].map {|f|
File.basename(f, '.yml') }
fixture_class_names = {} # or whatever needed
Fixtures.create_fixtures(fixtures_folder, fixtures, fixture_class_names)
This still wasn't fully working; I posted too soon. See here for the
final and working version:
http://wiki.github.com/aslakhellesoy/cucumber/fixtures
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
htt
The method I posted last week only works for Cucumber prior to 0.2.3.2.
For 0.2.3.2 and later, you cannot pass a block to the World more than
once, and thus the new way would be (in env.rb):
module FixtureAccess
def self.included(base)
(class << base; self; end).class_eval do
@@fixt
I've updated http://wiki.github.com/aslakhellesoy/cucumber/fixtures
accordingly.
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
>> How do I actually use real, pre-existing Rails fixtures, the same as
>> the unit tests use? For familiarity?
What I was missing is the regular use of fixtures as in rspec or test
unit, like so:
u = users(:bob)
u.email = "aaa"
u.should_not be_valid
This link
>
> http://wiki.github.com/aslak
aslak hellesoy wrote:
http://groups.google.com/group/cukes
What, no gmane yet?? (-:
I would have preferred: "I have set up GMane"
Netiquette: I would _not_ set someone else's group up on GMane - even if it were
just a Google Group...
--
Phlip
http://flea.sourceforge.net/resume.htm
>
>> Ben Mabey wrote:
>>
>>> http://wiki.github.com/aslakhellesoy/cucumber/fixtures
>>
>> Ding! That would have been my next click in my Googling. Let's hope this
>> thread pushes that up.
>>
>> > http://groups.google.com/group/cukes
>>
>> What, no gmane yet?? (-:
>>
> I would have preferred: "I ha
Ben Mabey wrote:
http://wiki.github.com/aslakhellesoy/cucumber/fixtures
Ding! That would have been my next click in my Googling. Let's hope
this thread pushes that up.
> http://groups.google.com/group/cukes
What, no gmane yet?? (-:
I would have preferred: "I have set up GMane"
Thank
Ben Mabey wrote:
http://wiki.github.com/aslakhellesoy/cucumber/fixtures
Ding! That would have been my next click in my Googling. Let's hope this thread
pushes that up.
> http://groups.google.com/group/cukes
What, no gmane yet?? (-:
--
Phlip
_
Phlip wrote:
Cucumberists:
FYI, Cucumber now has it's own mailing list:
http://groups.google.com/group/cukes
Apologies for not jumping into some wild alternate fixture (or mock!)
system, but the unit tests at my new day gig are >cough< hanging by a
thread as it is.
I need to show off som
Cucumberists:
Apologies for not jumping into some wild alternate fixture (or mock!) system,
but the unit tests at my new day gig are >cough< hanging by a thread as it is.
I need to show off some cute Cuke, _without_ rocking the boat!
How do I actually use real, pre-existing Rails fixtures, th
12 matches
Mail list logo