Sha256: d11c7b2b422f09a9fe5774792eab1786717f9728b6ed97e3ede54c6956879e16

Contents?: true

Size: 412 Bytes

Versions: 7

Compression:

Stored size: 412 Bytes

Contents

require 'rest-more/test'

describe RC::Mixi do
  after do
    WebMock.reset!
    RR.verify
  end

  should 'get right' do
    stub_request(:get, 'http://api.mixi-platform.com/me').
      to_return(:body => '{"status": "OK"}')

    RC::Mixi.new.get('me').should.eq({'status' => 'OK'})
  end

  should 'be able to set access_token' do
    RC::Mixi.new(:access_token => 'QQ').access_token.should.eq 'QQ'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rest-more-1.0.2 test/mixi/test_api.rb
rest-more-1.0.1 test/mixi/test_api.rb
rest-more-1.0.0 test/mixi/test_api.rb
rest-more-0.8.0 test/client/mixi/test_api.rb
rest-more-0.7.2.1 test/client/mixi/test_api.rb
rest-more-0.7.2 test/client/mixi/test_api.rb
rest-more-0.7.1 test/client/mixi/test_api.rb