Rename Contact::address_processing to address_processing?

#251
This commit is contained in:
Artur Beljajev 2016-12-12 04:36:28 +02:00
parent 5af4c585d4
commit 5e1c43f7cc
5 changed files with 7 additions and 7 deletions

View file

@ -23,7 +23,7 @@ RSpec.describe Repp::ContactV1, db: true do
context 'when address processing is enabled' do
before do
expect(Contact).to receive(:address_processing).and_return(true)
expect(Contact).to receive(:address_processing?).and_return(true)
get '/repp/v1/contacts', { limit: 1, details: true }, { 'HTTP_AUTHORIZATION' => http_auth_key }
end
@ -34,7 +34,7 @@ RSpec.describe Repp::ContactV1, db: true do
context 'when address processing is disabled' do
before do
expect(Contact).to receive(:address_processing).and_return(false)
expect(Contact).to receive(:address_processing?).and_return(false)
get '/repp/v1/contacts', { limit: 1, details: true }, { 'HTTP_AUTHORIZATION' => http_auth_key }
end