test/fastly/syslog_test.rb in fastly-2.5.3 vs test/fastly/syslog_test.rb in fastly-3.0.0

- old
+ new

@@ -1,15 +1,15 @@ require_relative '../test_helper' describe Fastly::Syslog do - let(:client) { Fastly.new(user: 'test@example.com', password: 'password') } + let(:client) { Fastly.new(api_key: 'notasecrettestkey', user: 'test@example.com', password: 'password') } let(:service_id) { SecureRandom.hex(6) } let(:version) { 1 } let(:syslog) { Fastly::Syslog.new({ name: 'test_syslog', service_id: service_id, version: 1 }, client) } before { - stub_request(:post, "#{Fastly::Client::DEFAULT_URL}/login").to_return(body: '{}', status: 200, headers: { 'Set-Cookie' => 'tasty!' }) + stub_request(:post, "#{Fastly::Client::DEFAULT_URL}/login").to_return(body: '{}', status: 200) } describe '#item' do it 'translates response_condition attribute properly' do response_condition = 'never_syslog'