minor changes
This commit is contained in:
@@ -181,7 +181,7 @@ FactoryGirl.define do
|
||||
singleton_file_type
|
||||
end
|
||||
|
||||
%w(binary executable renderable).each do |attribute|
|
||||
[:binary, :executable, :renderable].each do |attribute|
|
||||
trait(attribute) { send(attribute, true) }
|
||||
end
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
FactoryGirl.define do
|
||||
%w(admin external_user teacher).each do |factory_name|
|
||||
[: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(described_class.create.errors[:user_type]).to be_present
|
||||
end
|
||||
|
||||
%w(download render run test).each do |action|
|
||||
[:download, :render, :run, :test].each do |action|
|
||||
describe "##{action}_url" do
|
||||
let(:url) { @submission.send(:"#{action}_url") }
|
||||
|
||||
|
Reference in New Issue
Block a user