Sha256: d3c52b163ac50c9055f8fbdd9b6ee2b0a2f7c985d74c5635f5816047302ced2e
Contents?: true
Size: 671 Bytes
Versions: 34
Compression:
Stored size: 671 Bytes
Contents
require 'spec_helper' describe FbGraph::Connections::Tabs do let(:page) { FbGraph::Page.new('FbGraph', :access_token => 'page_token') } describe '#tabs' do it 'should return tabs as FbGraph::Tab' do mock_graph :get, 'FbGraph/tabs', 'pages/tabs/fb_graph', :access_token => 'page_token' do page.tabs.each do |tab| tab.should be_a FbGraph::Tab end end end end describe '#tab!' do it 'should add a tab' do mock_graph :post, 'FbGraph/tabs', 'true', :access_token => 'page_token', :params => { :app_id => '12345' } do page.tab!(:app_id => 12345).should be_true end end end end
Version data entries
34 entries across 34 versions & 1 rubygems