diff --git a/spec/zoho_hub/base_record_spec.rb b/spec/zoho_hub/base_record_spec.rb index 5201f7f..7ded44a 100644 --- a/spec/zoho_hub/base_record_spec.rb +++ b/spec/zoho_hub/base_record_spec.rb @@ -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 diff --git a/spec/zoho_hub/connection_spec.rb b/spec/zoho_hub/connection_spec.rb index 31d9303..0699c08 100644 --- a/spec/zoho_hub/connection_spec.rb +++ b/spec/zoho_hub/connection_spec.rb @@ -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 @@ -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 @@ -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 diff --git a/spec/zoho_hub/with_attributes_spec.rb b/spec/zoho_hub/with_attributes_spec.rb index 184da02..9754d0c 100644 --- a/spec/zoho_hub/with_attributes_spec.rb +++ b/spec/zoho_hub/with_attributes_spec.rb @@ -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 diff --git a/spec/zoho_hub_spec.rb b/spec/zoho_hub_spec.rb index 1f85934..ebf3a6b 100644 --- a/spec/zoho_hub_spec.rb +++ b/spec/zoho_hub_spec.rb @@ -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