Class: AktionTest::Module::Rails::FactoryGirl
- Inherits:
-
Base
- Object
- Base
- AktionTest::Module::Rails::FactoryGirl
- Defined in:
- lib/aktion_test/module/rails/factory_girl.rb
Instance Method Summary collapse
- #configure ⇒ Object
-
#initialize(spec, options = {}) ⇒ FactoryGirl
constructor
A new instance of FactoryGirl.
- #prepare ⇒ Object
Constructor Details
#initialize(spec, options = {}) ⇒ FactoryGirl
Returns a new instance of FactoryGirl.
5 6 7 |
# File 'lib/aktion_test/module/rails/factory_girl.rb', line 5 def initialize(spec, ={}) super end |
Instance Method Details
#configure ⇒ Object
13 14 15 16 |
# File 'lib/aktion_test/module/rails/factory_girl.rb', line 13 def configure rspec.include ::FactoryGirl::Syntax::Methods rspec.include AktionTestRails::Matchers::FactoryGirl, type: :model end |
#prepare ⇒ Object
9 10 11 |
# File 'lib/aktion_test/module/rails/factory_girl.rb', line 9 def prepare require 'factory_girl_rails' end |