Make rubocop happy again
This commit is contained in:
parent
73ce49de25
commit
40562334c7
4 changed files with 6 additions and 9 deletions
|
|
@ -5,6 +5,6 @@ FactoryGirl.define do
|
||||||
title { Faker::Lorem.sentence }
|
title { Faker::Lorem.sentence }
|
||||||
question_type
|
question_type
|
||||||
conferences { [create(:conference)] }
|
conferences { [create(:conference)] }
|
||||||
answers { [create(:answer) ] }
|
answers { [create(:answer)] }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :sponsorship_level do
|
factory :sponsorship_level do
|
||||||
title { Faker::Hipster.word }
|
title { Faker::Hipster.word }
|
||||||
|
|
||||||
conference
|
conference
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ describe TrackSerializer, type: :serializer do
|
||||||
expected_json = {
|
expected_json = {
|
||||||
track: {
|
track: {
|
||||||
guid: track.guid,
|
guid: track.guid,
|
||||||
name: track.name,
|
name: track.name,
|
||||||
color: track.color
|
color: track.color
|
||||||
}
|
}
|
||||||
}.to_json
|
}.to_json
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,9 @@ RSpec.configure do |config|
|
||||||
example_filename = File.expand_path(example_filename, Capybara.save_and_open_page_path)
|
example_filename = File.expand_path(example_filename, Capybara.save_and_open_page_path)
|
||||||
if RSpec.current_example.exception.present?
|
if RSpec.current_example.exception.present?
|
||||||
save_page(example_filename)
|
save_page(example_filename)
|
||||||
else
|
# remove the file if the test starts working again
|
||||||
# remove the file if the test starts working again
|
elsif File.exist?(example_filename)
|
||||||
if File.exist?(example_filename)
|
File.unlink(example_filename)
|
||||||
File.unlink(example_filename)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue