diff --git a/spec/controllers/metacodes_controller_spec.rb b/spec/controllers/metacodes_controller_spec.rb index d950e77d..48688117 100644 --- a/spec/controllers/metacodes_controller_spec.rb +++ b/spec/controllers/metacodes_controller_spec.rb @@ -55,7 +55,8 @@ RSpec.describe MetacodesController, type: :controller do describe 'PUT #update' do context 'with valid params' do let(:new_attributes) do - { icon: 'https://newimages.ca/cool-image.jpg', + { manual_icon: 'https://newimages.ca/cool-image.jpg', + aws_icon: nil, color: '#ffffff', name: 'Cognition' } end diff --git a/spec/factories/metacodes.rb b/spec/factories/metacodes.rb index eb040e09..543e4955 100644 --- a/spec/factories/metacodes.rb +++ b/spec/factories/metacodes.rb @@ -1,7 +1,8 @@ FactoryGirl.define do factory :metacode do sequence(:name) { |n| "Cool Metacode ##{n}" } - icon 'https://images.com/image.png' + manual_icon 'https://images.com/image.png' + aws_icon nil color '#cccccc' end end