Sha256: 084d507c98e41af2ce45a438a52590fafc098c08e86cd6b322658bbc14cc5169

Contents?: true

Size: 644 Bytes

Versions: 12

Compression:

Stored size: 644 Bytes

Contents

require 'spec_helper'
require 'datapimp/sources/pivotal'

describe Datapimp::Sources::Pivotal do
  let(:options) { double('options', limit: 5, offset: nil, format: nil, output: nil).as_null_object }
  let(:project) { '442903' }

  describe "user activity" do
    it "should return an array of activities" do
      service = described_class.new([project], options)

      VCR.use_cassette(:pivotal_user_activity) do
        output = service.to_s

        expect(output).to be_kind_of(Hash)
        %w(user_activity project_activity project_stories).each do |key|
          expect(output).to have_key(key)
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
datapimp-1.2.11 spec/datapimp/sync/pivotal_spec.rb
datapimp-1.2.10 spec/datapimp/sync/pivotal_spec.rb
datapimp-1.2.9 spec/datapimp/sync/pivotal_spec.rb
datapimp-1.2.8 spec/datapimp/sync/pivotal_spec.rb
datapimp-1.2.7 spec/datapimp/sync/pivotal_spec.rb
datapimp-1.2.6 spec/datapimp/sync/pivotal_spec.rb
datapimp-1.2.5 spec/datapimp/sync/pivotal_spec.rb
datapimp-1.2.4 spec/datapimp/sync/pivotal_spec.rb
datapimp-1.2.3 spec/datapimp/sync/pivotal_spec.rb
datapimp-1.2.2 spec/datapimp/sync/pivotal_spec.rb
datapimp-1.2.1 spec/datapimp/sync/pivotal_spec.rb
datapimp-1.2.0 spec/datapimp/sync/pivotal_spec.rb