loads seeds for testing

This commit is contained in:
Juanjo Bazán
2015-08-31 13:37:07 +02:00
committed by Juanjo Bazán
parent 0dca4c277b
commit 3a15895617
2 changed files with 3 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ describe Debate do
let(:debate) { create(:debate) }
before(:all) do
create(:setting, key: "max_ratio_anon_votes_on_debates", value: "50")
Setting.find_by(key: "max_ratio_anon_votes_on_debates").update(value: 50)
end
it "should be true for level two verified users" do

View File

@@ -21,6 +21,8 @@ RSpec.configure do |config|
config.before(:each) do |example|
DatabaseCleaner.strategy = example.metadata[:js] ? :truncation : :transaction
DatabaseCleaner.start
load "#{Rails.root}/db/seeds.rb"
end
config.after(:each) do