Review changes, used eq instead of match
This commit is contained in:
parent
fb20dcf8e6
commit
b544d8fade
|
@ -60,7 +60,7 @@ describe Projects::BuildsController do
|
|||
expect(json_response['text']).to eq status.text
|
||||
expect(json_response['label']).to eq status.label
|
||||
expect(json_response['icon']).to eq status.icon
|
||||
expect(json_response['favicon']).to match status.favicon
|
||||
expect(json_response['favicon']).to eq "/assets/ci_favicons/#{status.favicon}.ico"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1208,7 +1208,7 @@ describe Projects::MergeRequestsController do
|
|||
expect(json_response['text']).to eq status.text
|
||||
expect(json_response['label']).to eq status.label
|
||||
expect(json_response['icon']).to eq status.icon
|
||||
expect(json_response['favicon']).to match status.favicon
|
||||
expect(json_response['favicon']).to eq "/assets/ci_favicons/#{status.favicon}.ico"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ describe Projects::PipelinesController do
|
|||
expect(json_response['text']).to eq status.text
|
||||
expect(json_response['label']).to eq status.label
|
||||
expect(json_response['icon']).to eq status.icon
|
||||
expect(json_response['favicon']).to match status.favicon
|
||||
expect(json_response['favicon']).to eq "/assets/ci_favicons/#{status.favicon}.ico"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -38,7 +38,7 @@ describe BuildSerializer do
|
|||
expect(subject[:text]).to eq(status.text)
|
||||
expect(subject[:label]).to eq(status.label)
|
||||
expect(subject[:icon]).to eq(status.icon)
|
||||
expect(subject[:favicon]).to match status.favicon
|
||||
expect(subject[:favicon]).to eq("/assets/ci_favicons/#{status.favicon}.ico")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -144,7 +144,7 @@ describe PipelineSerializer do
|
|||
expect(subject[:text]).to eq(status.text)
|
||||
expect(subject[:label]).to eq(status.label)
|
||||
expect(subject[:icon]).to eq(status.icon)
|
||||
expect(subject[:favicon]).to match status.favicon
|
||||
expect(subject[:favicon]).to eq("/assets/ci_favicons/#{status.favicon}.ico")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue