Sha256: 56f2e807c285694f499694bd9cd5775fdf63b8642a7739058eb4ab1314f85a72
Contents?: true
Size: 890 Bytes
Versions: 4
Compression:
Stored size: 890 Bytes
Contents
require 'spec_helper' describe Freee::Item do let(:client_id) { get_client_id } let(:secret_key) { get_secret_key } let(:token) { get_token } let(:company_id) { get_company_id } let(:item) { Freee::Item } before(:each) do Freee::Base.config(client_id, secret_key, token) end describe 'should can be able to create instance' do subject { item.list(company_id) } it { is_expected.not_to be_nil } it { is_expected.to be_instance_of(Freee::Response::Item) } end describe 'should get information of first item for the company' do subject { item.list(company_id)['items'].first } it { is_expected.not_to be_nil } it { is_expected.to include('id') } it { is_expected.to include('company_id') } it { is_expected.to include('name') } it { is_expected.to include('shortcut1') } it { is_expected.to include('shortcut2') } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
freee-0.3.1 | spec/item_spec.rb |
freee-0.3.0 | spec/item_spec.rb |
freee-0.2.0 | spec/item_spec.rb |
freee-0.1.0 | spec/item_spec.rb |