mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Use dynamic fake data in the spec
This commit is contained in:
parent
4d38305110
commit
73ce49de25
14 changed files with 36 additions and 36 deletions
|
|
@ -11,7 +11,7 @@ describe SponsorsHelper, type: :helper do
|
|||
end
|
||||
|
||||
it 'returns correct url' do
|
||||
expect(get_logo(sponsor)).to match %r{.*(\bfirst/rails.png\b)}
|
||||
expect(get_logo(sponsor)).to match %r{.*(\bfirst/#{sponsor.logo_file_name}\b)}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ describe SponsorsHelper, type: :helper do
|
|||
end
|
||||
|
||||
it 'returns correct url' do
|
||||
expect(get_logo(sponsor)).to match %r{.*(\bsecond/rails.png\b)}
|
||||
expect(get_logo(sponsor)).to match %r{.*(\bsecond/#{sponsor.logo_file_name}\b)}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ describe SponsorsHelper, type: :helper do
|
|||
end
|
||||
|
||||
it 'returns correct url' do
|
||||
expect(get_logo(sponsor)).to match %r{.*(\bothers/rails.png\b)}
|
||||
expect(get_logo(sponsor)).to match %r{.*(\bothers/#{sponsor.logo_file_name}\b)}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue