spec/rest/client_spec.rb in finapps-2.0.29 vs spec/rest/client_spec.rb in finapps-2.0.30
- old
+ new
@@ -11,12 +11,12 @@
end
context 'an instance of Client' do
subject { FinApps::REST::Client.new(:company_identifier, :company_token) }
- %i(users sessions orders order_tokens institutions institutions_forms user_institutions_statuses user_institutions
- user_institutions_forms).each do |method|
+ %i(users sessions orders order_tokens order_reports order_statuses institutions institutions_forms
+ user_institutions_statuses user_institutions user_institutions_forms).each do |method|
it "responds to #{method}" do
expect(subject).to respond_to(method)
end
end
@@ -26,10 +26,18 @@
describe '#sessions' do
it { expect(subject.sessions).to be_an_instance_of(FinApps::REST::Sessions) }
end
+ describe '#order_statuses' do
+ it { expect(subject.order_statuses).to be_an_instance_of(FinApps::REST::OrderStatuses) }
+ end
+
+ describe '#order_reports' do
+ it { expect(subject.order_reports).to be_an_instance_of(FinApps::REST::OrderReports) }
+ end
+
describe '#order_tokens' do
it { expect(subject.order_tokens).to be_an_instance_of(FinApps::REST::OrderTokens) }
end
describe '#orders' do
@@ -57,11 +65,11 @@
end
# [:users, :institutions, :user_institutions, :transactions, :categories,
# :budget_models, :budget_calculation, :budgets, :cashflows,
# :alert, :alert_definition, :alert_preferences, :alert_settings, :rule_sets]
- %i(users sessions orders order_tokens institutions institutions_forms user_institutions_statuses user_institutions
- user_institutions_forms).each do |method|
+ %i(users sessions orders order_tokens order_reports order_statuses institutions institutions_forms
+ user_institutions_statuses user_institutions user_institutions_forms).each do |method|
it "memoizes the result of #{method}" do
first = subject.send(method)
second = subject.send(method)
expect(first.object_id).to eq(second.object_id)
end