File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 286286 end
287287end
288288
289+ describe SoftLayer ::Service , "#user_agent_header" do
290+ it "should return a default value if not set" do
291+ service = SoftLayer ::Service . new ( "SoftLayer_Account" , :username => "sample_username" , :api_key => "blah" )
292+ service . user_agent_header . should_not be_empty
293+ end
294+
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" }
299+ end
300+ end
301+
289302describe SoftLayer ::Service , "#result_limit" do
290303 it "should return an APIParameterFilter with itself as the target" do
291304 service = SoftLayer ::Service . new ( "SoftLayer_Account" , :username => "sample_username" , :api_key => "blah" )
You can’t perform that action at this time.
0 commit comments