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