Guest User

Untitled

a guest
Jun 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #put this in your spec_helper.rb if you're using Rails 3, Rspec2, Mongoid, and #ActiveRecord together until the "real" fix comes along
  2. class RSpec::Core::Configuration
  3. attr_accessor :fixture_path, :use_transactional_fixtures
  4.  
  5. def fixture_path=(path)
  6. @fixture_path = path
  7. end
  8.  
  9. def use_transactional_fixtures=(bool)
  10. @use_transactional_fixtures = bool
  11. end
  12. end
  13.  
  14. class RSpec::Core::ExampleGroup
  15. def fixture_path
  16. RSpec.configuration.fixture_path
  17. end
  18. end
Add Comment
Please, Sign In to add comment