Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #put this in your spec_helper.rb if you're using Rails 3, Rspec2, Mongoid, and #ActiveRecord together until the "real" fix comes along
- class RSpec::Core::Configuration
- attr_accessor :fixture_path, :use_transactional_fixtures
- def fixture_path=(path)
- @fixture_path = path
- end
- def use_transactional_fixtures=(bool)
- @use_transactional_fixtures = bool
- end
- end
- class RSpec::Core::ExampleGroup
- def fixture_path
- RSpec.configuration.fixture_path
- end
- end
Add Comment
Please, Sign In to add comment