spec/lib/sdk4me/certificate_spec.rb in 4me-sdk-2.0.1 vs spec/lib/sdk4me/certificate_spec.rb in 4me-sdk-2.0.2

- old
+ new

@@ -10,11 +10,11 @@ expect { result[:response] = client.get('me') }.not_to raise_error response = result[:response] expect(response.valid?).to be_falsey # expecting 401 error - expect(response.message).to eq('401: Bad credentials') + expect(response.message).to start_with('401:') end it 'should be able to connect to the 4me REST API (access token)' do WebMock.allow_net_connect! client = Sdk4me::Client.new(access_token: 'invalid', max_retry_time: -1) @@ -24,10 +24,10 @@ expect { result[:response] = client.get('me') }.not_to raise_error response = result[:response] expect(response.valid?).to be_falsey # expecting 401 error - expect(response.message).to eq('401: Bad credentials') + expect(response.message).to start_with('401:') end it 'should be able to connect to S3' do WebMock.allow_net_connect! http = Net::HTTP.new('sdk4me-eu.s3-eu-west-1.amazonaws.com', 443)