Sha256: 36c66bc858be61be9162cd6ca5fae4c1f6e8b6723c071b6f47605f6ed8e35bfa

Contents?: true

Size: 613 Bytes

Versions: 5

Compression:

Stored size: 613 Bytes

Contents

require 'spec_helper'

describe PivotalTracker::Activity do

  context "without a specified project" do
    it "should return an array of activities" do
      PivotalTracker::Activity.all.should be_a(Array)
      PivotalTracker::Activity.all.first.should be_a(PivotalTracker::Activity)
    end
  end

  context "with a specified project" do
    before do
      @project = PivotalTracker::Project.find(PROJECT_ID)
    end

    it "should return an array of activities" do
      @project.activities.all.should be_a(Array)
      @project.activities.all.first.should be_a(PivotalTracker::Activity)
    end
  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
topprospect-pivotal-tracker-0.1.1 spec/unit/pivotal-tracker/activity_spec.rb
topprospect-pivotal-tracker-0.0.1 spec/unit/pivotal-tracker/activity_spec.rb
pivotal-tracker-0.3.1 spec/unit/pivotal-tracker/activity_spec.rb
pivotal-tracker-0.3.0 spec/unit/pivotal-tracker/activity_spec.rb
pivotal-tracker-0.2.2 spec/unit/pivotal-tracker/activity_spec.rb