Class: AktionTest::Module::Rails::RSpec
- Inherits:
-
Base
- Object
- Base
- AktionTest::Module::Rails::RSpec
- Defined in:
- lib/aktion_test/module/rails/rspec.rb
Instance Method Summary collapse
- #configure ⇒ Object
-
#initialize(spec, options = {}) ⇒ RSpec
constructor
A new instance of RSpec.
- #prepare ⇒ Object
Constructor Details
#initialize(spec, options = {}) ⇒ RSpec
Returns a new instance of RSpec.
5 6 7 8 |
# File 'lib/aktion_test/module/rails/rspec.rb', line 5 def initialize(spec, ={}) spec.use ::AktionTest::Module::RSpec super end |
Instance Method Details
#configure ⇒ Object
14 15 16 17 18 |
# File 'lib/aktion_test/module/rails/rspec.rb', line 14 def configure rspec.fixture_path = "#{::Rails.root}/spec/fixtures" rspec.use_transactional_fixtures = true rspec.infer_base_class_for_anonymous_controllers = false end |
#prepare ⇒ Object
10 11 12 |
# File 'lib/aktion_test/module/rails/rspec.rb', line 10 def prepare require 'rspec/rails' end |