fixed multiple style guide violations

This commit is contained in:
Hauke Klement
2015-02-17 10:23:01 +01:00
parent cb87870a46
commit a13d1738e2
32 changed files with 56 additions and 64 deletions

View File

@ -10,7 +10,7 @@ def create_seed_file(exercise, path, file_attributes = {})
else
file_attributes.merge!(content: SeedsHelper.read_seed_file(path))
end
file = exercise.add_file!(file_attributes)
exercise.add_file!(file_attributes)
end
FactoryGirl.define do
@ -18,7 +18,7 @@ FactoryGirl.define do
created_by_teacher
description "Try HTML's audio and video capabilities."
association :execution_environment, factory: :html
instructions "Build a simple website including an HTML <audio> and <video> element. Link the following media files: chai.ogg, devstories.mp4."
instructions 'Build a simple website including an HTML <audio> and <video> element. Link the following media files: chai.ogg, devstories.mp4.'
title 'Audio & Video'
after(:create) do |exercise|

View File

@ -182,9 +182,7 @@ FactoryGirl.define do
end
%w(binary executable renderable).each do |attribute|
trait(attribute) do
self.send(attribute, true)
end
trait(attribute) { send(attribute, true) }
end
trait :singleton_file_type do