spec/iremix/user_spec.rb in iremix-ruby-0.0.3 vs spec/iremix/user_spec.rb in iremix-ruby-0.0.4
- old
+ new
@@ -3,10 +3,10 @@
module Iremix
describe User do
describe ".current" do
it "returns the parsed user" do
- token = OpenStruct.new(:access_token => '123abc')
+ token = OpenStruct.new(:token => '123abc')
response = OpenStruct.new(:parsed => 'user_json_parsed')
token.should_receive(:get)
.with('/api/v1/people/current.json',
:params => { :access_token => '123abc' })