Sha256: 870aa7767fc1d806522d29005f12d41a6f0892aada638b5896cf57281eb81e4c

Contents?: true

Size: 533 Bytes

Versions: 91

Compression:

Stored size: 533 Bytes

Contents

require 'spec_helper'

describe FbGraph::Connections::Payments do
  describe '#payments' do
    let(:app) { FbGraph::Application.new('app_id', :secret => 'sec sec') }

    it 'should return payments as FbGraph::Order' do
      mock_graph :post, 'oauth/access_token', 'token_response' do
        mock_graph :get, 'app_id/payments', 'applications/payments/sample', :access_token => 'token' do
          app.payments.each do |payment|
            payment.should be_a FbGraph::Order
          end
        end
      end
    end
  end
end

Version data entries

91 entries across 91 versions & 1 rubygems

Version Path
fb_graph-2.6.5 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.6.4 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.6.3 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.6.2 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.6.1 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.6.0 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.5.9 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.5.8 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.5.7 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.5.6 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.5.5 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.5.4 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.5.3 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.5.2 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.5.1 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.5.0 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.4.20 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.4.19 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.4.18 spec/fb_graph/connections/payments_spec.rb
fb_graph-2.4.17 spec/fb_graph/connections/payments_spec.rb