Skip to content

Commit 6669190

Browse files
committed
Update tests for changes from user_agent_header to user_agent.
1 parent d1760b3 commit 6669190

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

spec/Service_spec.rb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,16 +286,17 @@
286286
end
287287
end
288288

289-
describe SoftLayer::Service, "#user_agent_header" do
289+
describe SoftLayer::Service, "@user_agent" do
290290
it "should return a default value if not set" do
291291
service = SoftLayer::Service.new("SoftLayer_Account", :username => "sample_username", :api_key => "blah")
292-
service.user_agent_header.should_not be_empty
292+
service.user_agent.should_not be_empty
293293
end
294294

295-
it "should persist a set value after being set" do
296-
service = SoftLayer::Service.new("SoftLayer_Account", :username => "sample_username", :api_key => "blah")
297-
service.user_agent_header("foobar").should === {"User-Agent"=>"foobar"}
298-
service.user_agent_header.should === {"User-Agent"=>"foobar"}
295+
it "should return a set value after being set" do
296+
service = SoftLayer::Service.new("SoftLayer_Account", :username => "sample_username", :api_key => "blah", :user_agent => "foobar")
297+
service.user_agent.should === {"User-Agent"=>"foobar"}
298+
service.user_agent = "bazbang"
299+
service.user_agent.should === {"User-Agent"=>"bazbang"}
299300
end
300301
end
301302

0 commit comments

Comments
 (0)