Skip to content

Commit

Permalink
[ESSI-2023] revise failing CollectionBrangingInfo specs
Browse files Browse the repository at this point in the history
  • Loading branch information
aploshay authored and dlpierce committed Nov 19, 2024
1 parent 9a31f21 commit c32cd7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/factories/collection_branding_infos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
target_url { '' }
height { 0 }
width { 0 }
file_set_id { '1' }
file_set_id { nil }
image_path { '/fake/path/to/image' }
end
initialize_with { CollectionBrandingInfo.new(collection_id: collection_id, filename: filename, role: role, alt_txt: alt_text, target_url: target_url, local_path: local_path, file_set_id: file_set_id, image_path: image_path) }
Expand All @@ -24,7 +24,7 @@
target_url { 'http://example.com/' }
height { 0 }
width { 0 }
file_set_id { '1' }
file_set_id { nil }
image_path { '/fake/path/to/image' }
end
initialize_with { CollectionBrandingInfo.new(collection_id: collection_id, filename: filename, role: role, alt_txt: alt_text, target_url: target_url, local_path: local_path, file_set_id: file_set_id, image_path: image_path) }
Expand Down
2 changes: 1 addition & 1 deletion spec/models/collection_branding_info_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

RSpec.describe CollectionBrandingInfo, type: :model do
let(:banner) { FactoryBot.build(:collection_branding_banner) }
let(:file_set) { double(id: 'file_set_id', uri: 'file_set_uri') }
let(:file_set) { FactoryBot.create(:file_set, id: 'file_set_id', uri: 'file_set_uri') }
let(:version) { double(uri: 'version_uri') }
let(:versions) { double(any?: true, all: self, last: version) }

Expand Down

0 comments on commit c32cd7a

Please sign in to comment.