update rspec for metacodes

This commit is contained in:
Devin Howard 2016-02-26 14:20:14 +08:00
parent ac1d4f70b6
commit ba1427af45
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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