1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/core/user_agent_tests.rb

7 lines
253 B
Ruby
Raw Normal View History

Shindo.tests('Fog::Connection', 'core') do
tests('user_agent').returns("fog/#{Fog::VERSION}") do
conn = Fog::Connection.new("http://www.testserviceurl.com", false, {})
2013-02-22 10:45:33 -05:00
conn.instance_variable_get(:@excon).data[:headers]['User-Agent']
end
end