Skip to content

Commit

Permalink
Fix equality assertion causing test error
Browse files Browse the repository at this point in the history
eql is primarily used as a mathematical equals. Using it here was
causing a divison by 0 error due to some confusion.

Co-authored-by: Seth Boyles <sboyles@pivotal.io>
Co-authored-by: Mona Mohebbi <mmohebbi@pivotal.io>
  • Loading branch information
sethboyles and monamohebbi committed Jan 18, 2022
1 parent de3487a commit 3e55c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/lib/sinatra/vcap_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def app

shared_examples 'http header content type' do
it 'should return json content type in the header' do
expect(last_response.headers['Content-Type']).to eql('application/json;charset=utf-8')
expect(last_response.headers['Content-Type']).to eq('application/json;charset=utf-8')
end
end

Expand Down

0 comments on commit 3e55c7d

Please sign in to comment.