loads seeds for testing
This commit is contained in:
committed by
Juanjo Bazán
parent
0dca4c277b
commit
3a15895617
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user