From eaec6cc76df86dbdeac891fd18224f57ce25a6bd Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Tue, 3 Mar 2020 13:55:03 +0100 Subject: [PATCH] fix specs. #443 --- spec/models/provider_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/provider_spec.rb b/spec/models/provider_spec.rb index 8231bd45a..68af72a13 100644 --- a/spec/models/provider_spec.rb +++ b/spec/models/provider_spec.rb @@ -80,9 +80,9 @@ expect(subject.save).to be true expect(subject.errors.details).to be_empty expect(subject.logo.file?).to be true - expect(subject.logo.url).to start_with("/images/members/000") - expect(subject.logo.url(:medium)).to start_with("/images/members/000") - expect(subject.logo_url).to start_with("/images/members/000") + expect(subject.logo.url).to start_with("/images/members/" + subject.symbol.downcase+ ".png") + expect(subject.logo.url(:medium)).to start_with("/images/members/" + subject.symbol.downcase+ ".png") + expect(subject.logo_url).to start_with("/images/members/" + subject.symbol.downcase + ".png") expect(subject.logo_file_name).to eq(subject.symbol.downcase + ".png") expect(subject.logo.content_type).to eq("image/png") expect(subject.logo.size).to be > 10