Sha256: 858e50c3cb6e30581e8e31df83070b4ba056871243e3a7ed02a68e49dd2f53e7
Contents?: true
Size: 675 Bytes
Versions: 3
Compression:
Stored size: 675 Bytes
Contents
require 'spec_helper' describe Buffer::Client do let(:id) { "5160746d54f04a5e3a00000f" } subject do Buffer::Client.new("some_token") end describe "#initialize" do it "allows a token to be set and retrieved" do subject.access_token.should eq("some_token") end end describe "#info" do before do stub_request(:get, "#{base_path}/info/configuration.json?access_token=some_token"). to_return(fixture("info.txt")) end it "connects to the correct endpoint" do subject.info end it "retrieves the correct name" do subject.info.services.twitter.types.profile.name.should eq("Twitter") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
buffer-0.1.2 | spec/lib/buffer_spec.rb |
buffer-0.1.1 | spec/lib/buffer_spec.rb |
buffer-0.1.0 | spec/lib/buffer_spec.rb |