Skip to content

Commit e015d78

Browse files
committed
Updating tests
1 parent f41c13f commit e015d78

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/unit/spark_api/configuration_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
expect(SparkApi.api_key).to match("my_api_key")
1515
expect(SparkApi.timeout).to eq(5)
1616
expect(SparkApi.request_id_chain).to be_nil
17+
expect(SparkApi.user_ip_address).to be_nil
1718
expect(SparkApi.middleware).to eq('spark_api')
1819
end
1920
end
@@ -26,7 +27,8 @@
2627
:auth_endpoint => "https://login.wade.dev.fbsdata.com",
2728
:endpoint => "http://api.wade.dev.fbsdata.com",
2829
:timeout => 15,
29-
:request_id_chain => 'foobar')
30+
:request_id_chain => 'foobar',
31+
:user_ip_address => 'barfoo')
3032

3133
expect(client.api_key).to match("key_of_wade")
3234
expect(client.api_secret).to match("TopSecret")
@@ -36,6 +38,7 @@
3638
expect(client.version).to match("v1")
3739
expect(client.timeout).to eq(15)
3840
expect(client.request_id_chain).to eq('foobar')
41+
expect(client.user_ip_address).to eq('barfoo')
3942
end
4043

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

0 commit comments

Comments
 (0)