Sha256: 869e641ad0411373c7db239e952cb9bfce20c851a55f4d02447804c17c106598

Contents?: true

Size: 512 Bytes

Versions: 8

Compression:

Stored size: 512 Bytes

Contents

require 'spec_helper'

describe FbGraph2::Edge::Scores do
  context 'included in User' do
    describe '#scores' do
      let(:me) { FbGraph2::User.me('token') }
      it 'should return an Array of FbGraph2::Struct::Score' do
        scores = mock_graph :get, 'me/scores', 'user/scores', access_token: 'token' do
          me.scores
        end
        scores.should_not be_blank
        scores.each do |score|
          score.should be_instance_of FbGraph2::Struct::Score
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fb_graph2-0.1.0 spec/fb_graph2/edge/scores_spec.rb
fb_graph2-0.0.11 spec/fb_graph2/edge/scores_spec.rb
fb_graph2-0.0.10 spec/fb_graph2/edge/scores_spec.rb
fb_graph2-0.0.9 spec/fb_graph2/edge/scores_spec.rb
fb_graph2-0.0.8 spec/fb_graph2/edge/scores_spec.rb
fb_graph2-0.0.7 spec/fb_graph2/edge/scores_spec.rb
fb_graph2-0.0.6 spec/fb_graph2/edge/scores_spec.rb
fb_graph2-0.0.5 spec/fb_graph2/edge/scores_spec.rb