Sha256: 49a85372c9cc27568307375d1436d4c97230571540b02358c2e67ea38b90031c
Contents?: true
Size: 451 Bytes
Versions: 4
Compression:
Stored size: 451 Bytes
Contents
$:.unshift File.dirname(__FILE__) require 'spec_helper' require "echonest" include SpecHelper describe Echonest::Connection do before do @connection = Echonest::Connection.new(Echonest::Api::URL) end it "should make http request with user agent" do req = @connection.make_request(URI('http://example.com/xxx'), 'get') req.method.should eql('GET') req['User-Agent'].should eql('ruby-echonest/' + Echonest::VERSION) end end
Version data entries
4 entries across 4 versions & 1 rubygems