changed literal array syntax, as suggested by RuboCop
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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") }
|
||||
|
||||
|
Reference in New Issue
Block a user