Sha256: 389b65786d26f28ff1a8b061b14165d9245e29f2d10432d4f503366df24ce220

Contents?: true

Size: 498 Bytes

Versions: 17

Compression:

Stored size: 498 Bytes

Contents

require 'spec_helper'

describe FbGraph2::App do
  describe '.app' do
    it 'should not call API' do
      expect do
        app = described_class.app 'token'
        app.should be_instance_of described_class
      end.not_to request_to 'app'
    end

    context 'when fetched' do
      it 'should call API' do
        app = mock_graph :get, 'app', 'app/app' do
          described_class.app('token').fetch
        end
        app.should be_instance_of described_class
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
fb_graph2-1.3.0 spec/fb_graph2/app_spec.rb
fb_graph2-1.2.0 spec/fb_graph2/app_spec.rb
fb_graph2-1.1.1 spec/fb_graph2/app_spec.rb
fb_graph2-1.1.0 spec/fb_graph2/app_spec.rb
fb_graph2-1.0.1 spec/fb_graph2/app_spec.rb
fb_graph2-1.0.0 spec/fb_graph2/app_spec.rb
fb_graph2-0.9.1 spec/fb_graph2/app_spec.rb
fb_graph2-0.9.0 spec/fb_graph2/app_spec.rb
fb_graph2-0.8.0 spec/fb_graph2/app_spec.rb
fb_graph2-0.7.9 spec/fb_graph2/app_spec.rb
fb_graph2-0.7.8 spec/fb_graph2/app_spec.rb
fb_graph2-0.7.7 spec/fb_graph2/app_spec.rb
fb_graph2-0.7.6 spec/fb_graph2/app_spec.rb
fb_graph2-0.7.5 spec/fb_graph2/app_spec.rb
fb_graph2-0.7.4 spec/fb_graph2/app_spec.rb
fb_graph2-0.7.3 spec/fb_graph2/app_spec.rb
fb_graph2-0.7.2 spec/fb_graph2/app_spec.rb