spec/moiper/request_spec.rb in moiper-0.1.1 vs spec/moiper/request_spec.rb in moiper-0.1.2

- old
+ new

@@ -32,10 +32,9 @@ Net::HTTP::Post.any_instance.should_receive(:basic_auth).with(Moiper.token, Moiper.key) Moiper::Request.new.request end it "has the correct user agent" do - headers = Hash[subject.each_capitalized.to_a] - headers["User-Agent"].should eq "Moiper/#{Moiper::VERSION}" + subject.get_fields("user-agent")[0].should eq "Moiper/#{Moiper::VERSION}" end end end