changed literal array syntax, as suggested by RuboCop

This commit is contained in:
Hauke Klement
2015-02-16 11:33:03 +01:00
parent 1068b18f41
commit 0bb5dae334
11 changed files with 15 additions and 15 deletions

View File

@ -181,7 +181,7 @@ FactoryGirl.define do
singleton_file_type
end
%w[binary executable renderable].each do |attribute|
%w(binary executable renderable).each do |attribute|
trait(attribute) do
self.send(attribute, true)
end

View File

@ -1,5 +1,5 @@
FactoryGirl.define do
%w[admin external_user teacher].each do |factory_name|
%w(admin external_user teacher).each do |factory_name|
trait :"created_by_#{factory_name}" do
association :user, factory: factory_name
end

View File

@ -18,7 +18,7 @@ describe Submission do
expect(Submission.create.errors[:user_type]).to be_present
end
%w[download render run test].each do |action|
%w(download render run test).each do |action|
describe "##{action}_url" do
let(:url) { @submission.send(:"#{action}_url") }