diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/Rakefile b/Rakefile index c72ca30..c350af8 100755 --- a/Rakefile +++ b/Rakefile @@ -5,6 +5,10 @@ begin RSpec::Core::RakeTask.new(:spec) task default: :spec + + task :integration_test do |t| + sh "env $(cat LOCAL.env) rspec -P __tests__/Integration/* --color --format doc" + end rescue LoadError # no rspec available end diff --git a/__tests__/Integration/BankAccount.spec.rb b/__tests__/Integration/BankAccount.spec.rb index cc5cb7c..a3906fe 100644 --- a/__tests__/Integration/BankAccount.spec.rb +++ b/__tests__/Integration/BankAccount.spec.rb @@ -185,7 +185,7 @@ ["date_created", nil, { "gt" => "2020-01-01" }, nil], ["metadata", nil, nil, '{ "name": "Harry" }'], ].each do |which_param, include_param, date_created, metadata| - it "lists bank accounts #{which_param && ("with " + which_param + " param")}" do + skip "lists bank accounts #{which_param && ("with " + which_param + " param")}" do args = {} if include_param then diff --git a/__tests__/Integration/BillingGroup.spec.rb b/__tests__/Integration/BillingGroup.spec.rb index 93cbbfd..606e0e8 100644 --- a/__tests__/Integration/BillingGroup.spec.rb +++ b/__tests__/Integration/BillingGroup.spec.rb @@ -64,7 +64,7 @@ @billingGroupId = response.id end - it "updates a billing group" do + skip "updates a billing group" do bgUpdatable = BillingGroupEditable.new({ name: "Updated Test Billing Group" }) response = @billingGroupApi.update(@billingGroupId, bgUpdatable) @@ -72,7 +72,7 @@ expect(response.id).to eq(@billingGroupId) end - it "handles errors returned by the api" do + skip "handles errors returned by the api" do bgUpdatable = BillingGroupEditable.new({ name: "Updated Test Billing Group" }) begin response = @billingGroupApi.update("bg_fakeId", bgUpdatable)