Sha256: 777d23365d9f415f739086a619dcaa7e265b5c360f26b161df62829e6fd997d1

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

require 'spec_helper'

describe Teamwork::Client::Timer do

  before(:each) { authenticate }

  context "#time_entries" do

    it "responds" do
      expect(Teamwork.respond_to?(:time_entries)).to be true
    end

    it "Array" do
      expect(Teamwork.time_entries).to be_a(Array)
    end

  end

  context "#time_entry" do

    it "fetches a single item" do
      expect(Teamwork.time_entry(Teamwork.time_entries.first.id)).to be_a(Teamwork::Thing)
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
teamworkpm-2.0.0 spec/teamwork/client/timer_spec.rb