Sha256: 90fb878233ef37a596dca0bfebfad11c4f833d85f7c5e7e7ade245674cbae793

Contents?: true

Size: 756 Bytes

Versions: 2

Compression:

Stored size: 756 Bytes

Contents

require 'spec_helper'

describe Paymo::Projects do

  before(:all) do
    VCR.use_cassette('auth') do
      Paymo::Base.new(username: 'james@jamesduncombe.com', password: ENV['PAYMO_PASS'])
    end
    @projects = Paymo::Projects.new
  end

  describe '#get_info' do
    it 'returns information about the project' do
      VCR.use_cassette('projects.get_info', record: :new_episodes) do
        result = @projects.get_info(802485)
        result.name.should be_a String
      end
    end
  end

  describe '#get_list' do
    it 'returns information about the project' do
      VCR.use_cassette('projects.get_list', record: :new_episodes) do
       # result =
          @projects.get_list
        #result.name.should be_a String
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paymo-0.0.2 spec/lib/paymo/resources/projects_spec.rb
paymo-0.0.1 spec/lib/paymo/resources/projects_spec.rb