Sha256: ae63d97be73407aa0c3a635142a2424cb930ffc46e046007acd799edadcae627
Contents?: true
Size: 713 Bytes
Versions: 50
Compression:
Stored size: 713 Bytes
Contents
require 'spec_helper' describe ACTV::Client do before do @client = ACTV::Client.new end describe "#me" do context "with a valid access token" do before do stub_get("/v2/me.json"). to_return(body: fixture("me.json"), headers: { content_type: "application/json; charset=utf-8" }) end it "requests the correct user" do @client.me a_get("/v2/me.json").should have_been_made end it "returns the correct name" do me = @client.me me.first_name.should eq 'Jeff' me.last_name.should eq 'Fang' me.address.city.should eql "sfsfsf" me.address.postal_code.should eql "12345" end end end end
Version data entries
50 entries across 50 versions & 1 rubygems