First tests in rspec, with factory_girl
This commit is contained in:
parent
accd7d1a58
commit
e3fd0c195a
11 changed files with 131 additions and 19 deletions
7
spec/support/factory_girl.rb
Normal file
7
spec/support/factory_girl.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
RSpec.configure do |config|
|
||||
|
||||
config.before(:suite) do
|
||||
FactoryGirl.lint
|
||||
end
|
||||
|
||||
end
|
||||
7
spec/support/seeds.rb
Normal file
7
spec/support/seeds.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
RSpec.configure do |config|
|
||||
|
||||
config.before(:suite) do
|
||||
load "#{Rails.root}/db/seeds.rb"
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue