From ba1427af45a751cc02d3abdacdab44477790109a Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Fri, 26 Feb 2016 14:20:14 +0800 Subject: [PATCH] update rspec for metacodes --- spec/controllers/metacodes_controller_spec.rb | 3 ++- spec/factories/metacodes.rb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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