Sha256: 0729549d7552d1945c7a4d79b90a8d046ed80423365a584767d64a8fd03dfc19
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
require 'ostruct' require 'iremix/user' module Iremix describe User do describe ".current" do it "returns the parsed user" do 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' }) .and_return(response) Iremix::User.current(token).should == 'user_json_parsed' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iremix-ruby-0.0.4 | spec/iremix/user_spec.rb |