mirror of
https://github.com/chenasraf/snpr.git
synced 2026-05-18 01:39:01 +00:00
Leave seeded achievements alone when truncating
This commit is contained in:
@@ -51,7 +51,7 @@ RSpec.configure do |config|
|
||||
end
|
||||
|
||||
config.before(:example, truncate: true) do
|
||||
DatabaseCleaner.strategy = :truncation
|
||||
DatabaseCleaner.strategy = :truncation, { except: %w(achievements) }
|
||||
end
|
||||
|
||||
config.before(:example) do
|
||||
|
||||
@@ -42,8 +42,7 @@ class GenotypesControllerTest < ActionController::TestCase
|
||||
activate_authlogic
|
||||
@user = FactoryGirl.create(:user)
|
||||
UserSession.create(@user)
|
||||
@publishing_award = FactoryGirl.
|
||||
create(:achievement, award: "Published genotyping")
|
||||
@publishing_award = Achievement.find_by!(award: 'Published genotyping')
|
||||
end
|
||||
|
||||
should "see the upload form" do
|
||||
|
||||
Reference in New Issue
Block a user