Skip to content

Commit

Permalink
🚨
Browse files Browse the repository at this point in the history
  • Loading branch information
just-the-v committed Oct 25, 2024
1 parent 906a79a commit a617bf7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spec/zoho_hub/base_record_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
record = test_class.new(response.data.first)

expect(record.my_string).to eq('')
expect(record.my_bool).to eq(false)
expect(record.my_bool).to be(false)
end
end
end
Expand Down
6 changes: 3 additions & 3 deletions spec/zoho_hub/connection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
expect(connection.access_token).to eq('foo')
expect do
connection
.send(:with_refresh) { instance_double('Response', body: invalid_http_response) }
.send(:with_refresh) { instance_double(Response, body: invalid_http_response) }
end.to change(connection, :access_token).to eq('123')
end

Expand All @@ -118,7 +118,7 @@
expect(connection.access_token).to eq('bar')
expect do
connection
.send(:with_refresh) { instance_double('Response', body: invalid_http_response) }
.send(:with_refresh) { instance_double(Response, body: invalid_http_response) }
end.not_to change(connection, :access_token)
expect(connection.access_token).to eq('bar')
end
Expand All @@ -136,7 +136,7 @@
it 'ensures to always use the current access token value' do
expect(adapter.headers['Authorization']).to eq('Zoho-oauthtoken bar123')
connection.send(:with_refresh) do
instance_double('Response', body: { data: [{ code: nil }] })
instance_double(Response, body: { data: [{ code: nil }] })
end
expect(adapter.headers['Authorization']).to eq('Zoho-oauthtoken bar456')
end
Expand Down
2 changes: 1 addition & 1 deletion spec/zoho_hub/with_attributes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
test.assign_attributes(one: 1, two: 2)
expect(test.one).to eq(1)
expect(test.two).to eq(2)
expect(test.three).to eq(nil)
expect(test.three).to be_nil
end
end
end
2 changes: 1 addition & 1 deletion spec/zoho_hub_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

RSpec.describe ZohoHub do
it 'has a version number' do
expect(ZohoHub::VERSION).not_to be nil
expect(ZohoHub::VERSION).not_to be_nil
end

describe '#on_initialize_connection' do
Expand Down

0 comments on commit a617bf7

Please sign in to comment.