spec/rest/client_spec.rb in finapps-1.0.1 vs spec/rest/client_spec.rb in finapps-1.0.2
- old
+ new
@@ -20,10 +20,19 @@
context 'when options are not provided' do
it { expect { FinApps::REST::Client.new :company_identifier, :company_token }.not_to raise_error }
end
+<<<<<<< HEAD
+ it 'responds to public api methods' do
+ [:alert, :alert_definition, :alert_settings, :alert_preferences,
+ :budgets, :budget_calculation, :budget_models, :cashflows,
+ :categories, :institutions, :transactions,
+ :user_institutions, :users,
+ :rule_sets].each do |method|
+ expect(@client).to respond_to(method)
+=======
end
context 'after initialized' do
let(:client) { FinApps::REST::Client.new(:company_identifier, :company_token) }
@@ -31,9 +40,10 @@
[:send_request, :connection, :users, :institutions, :user_institutions, :transactions,
:categories, :budget_models, :budget_calculation, :budgets, :cashflows, :alert,
:alert_definition, :alert_preferences, :alert_settings, :rule_sets, :user_credentials!].each do |method|
it "responds to #{method}" do
expect(client).to respond_to(method)
+>>>>>>> develop
end
end
describe '#users' do
it { expect(client.users).to be_an_instance_of(FinApps::REST::Users) }