Skip to content

Commit

Permalink
Updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hadleyn committed Jul 24, 2024
1 parent f41c13f commit e015d78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/unit/spark_api/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
expect(SparkApi.api_key).to match("my_api_key")
expect(SparkApi.timeout).to eq(5)
expect(SparkApi.request_id_chain).to be_nil
expect(SparkApi.user_ip_address).to be_nil
expect(SparkApi.middleware).to eq('spark_api')
end
end
Expand All @@ -26,7 +27,8 @@
:auth_endpoint => "https://login.wade.dev.fbsdata.com",
:endpoint => "http://api.wade.dev.fbsdata.com",
:timeout => 15,
:request_id_chain => 'foobar')
:request_id_chain => 'foobar',
:user_ip_address => 'barfoo')

expect(client.api_key).to match("key_of_wade")
expect(client.api_secret).to match("TopSecret")
Expand All @@ -36,6 +38,7 @@
expect(client.version).to match("v1")
expect(client.timeout).to eq(15)
expect(client.request_id_chain).to eq('foobar')
expect(client.user_ip_address).to eq('barfoo')
end

it "should allow unverified ssl certificates when verification is off" do
Expand Down

0 comments on commit e015d78

Please sign in to comment.