update rspec for metacodes
This commit is contained in:
parent
ac1d4f70b6
commit
ba1427af45
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue