Commit b9e94ac6 authored by marcheing's avatar marcheing

Add factory girl setup to spec helper

parent 83f5ac63
require 'factory_girl'
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause
......@@ -96,4 +97,11 @@ RSpec.configure do |config|
# as the one that triggered the failure.
Kernel.srand config.seed
=end
# FactoryGirl without rails configuration for rspec
config.include FactoryGirl::Syntax::Methods
config.before(:suite) do
FactoryGirl.find_definitions
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment