RSpec support: create fixtures in the proper folder
Reported by Matt Aimonetti | October 18th, 2007 @ 01:59 PM
Fixtures are created in the test/fixtures/ even when a user is using RSpec.
Maybe fixtures should be created in the RSpec folder when Rspec for rails plugin is found.
as a work around, one can edit spec_helper.rb, to load the fixtures from test/unit.
Spec::Runner.configure do |config|
config.use_transactional_fixtures = true
config.use_instantiated_fixtures = false
config.fixture_path = RAILS_ROOT + '/test/fixtures'
end
Comments and changes to this ticket
-
Chris Wanstrath October 19th, 2007 @ 11:19 PM
- State changed from new to hold
I would love you forever if you could post a patch.
-
Matt Aimonetti (mattetti) November 8th, 2007 @ 06:34 PM
be ready to love me forever :)
but hold on a bit, I have a lot of work atm, I definitely want to use fixture_scenarios_builder working perfectly with RSpec in my next project.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป