From 855412b16d0c7fbbade77274e059467e757011af Mon Sep 17 00:00:00 2001 From: An Vu Date: Tue, 13 Feb 2024 16:49:28 +1030 Subject: [PATCH 1/3] Enable Apple Pay domain registration --- lib/fat_zebra.rb | 3 +- lib/fat_zebra/utilities/apple_pay/domain.rb | 42 +++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 lib/fat_zebra/utilities/apple_pay/domain.rb diff --git a/lib/fat_zebra.rb b/lib/fat_zebra.rb index a4a4041..33d7311 100644 --- a/lib/fat_zebra.rb +++ b/lib/fat_zebra.rb @@ -42,7 +42,8 @@ require 'fat_zebra/web_hook' require 'fat_zebra/batch' -# Utilities/Mastercard +# Utilities +require 'fat_zebra/utilities/apple_pay/domain' require 'fat_zebra/utilities/mastercard/click_to_pay/registration' # Paypal API Resources diff --git a/lib/fat_zebra/utilities/apple_pay/domain.rb b/lib/fat_zebra/utilities/apple_pay/domain.rb new file mode 100644 index 0000000..56e237b --- /dev/null +++ b/lib/fat_zebra/utilities/apple_pay/domain.rb @@ -0,0 +1,42 @@ +# frozen_string_literal: true + +module FatZebra + module Utilities + module ApplePay + class Domain < APIResource + + ENDPOINT_URL = '/v1.0/utilities/apple_pay/domains' + + class << self + + ## + # Register an Apple Pay (web) domain + # + # @return [FatZebra::Utilities::ApplePay::Domains] response + def register! + response = request(:post, ENDPOINT_URL) + initialize_from(response) + end + + ## + # Check registration status of an Apple Pay (web) domain + # + # @return [FatZebra::Utilities::ApplePay::Domains] response + def registered? + response = request(:get, ENDPOINT_URL) + initialize_from(response) + end + + ## + # Delete an Apple Pay (web) domain + # + # @return [FatZebra::Utilities::ApplePay::Domains] response + def delete! + response = request(:delete, ENDPOINT_URL) + initialize_from(response) + end + end + end + end + end +end From 201759c4a7441b06c75c36c94fe7a00f5da4b6b8 Mon Sep 17 00:00:00 2001 From: An Vu Date: Wed, 28 Feb 2024 16:37:38 +1030 Subject: [PATCH 2/3] add specs --- lib/fat_zebra/utilities/apple_pay/domain.rb | 18 ++-- .../_delete_/deletes_the_domain.yml | 52 +++++++++++ .../_find_/fetches_the_domain.yml | 86 +++++++++++++++++++ .../_register_/registers_the_domain.yml | 84 ++++++++++++++++++ .../utilities/apple_pay/domain_spec.rb | 54 ++++++++++++ 5 files changed, 288 insertions(+), 6 deletions(-) create mode 100644 spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_delete_/deletes_the_domain.yml create mode 100644 spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_find_/fetches_the_domain.yml create mode 100644 spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_register_/registers_the_domain.yml create mode 100644 spec/lib/fat_zebra/utilities/apple_pay/domain_spec.rb diff --git a/lib/fat_zebra/utilities/apple_pay/domain.rb b/lib/fat_zebra/utilities/apple_pay/domain.rb index 56e237b..f68cea1 100644 --- a/lib/fat_zebra/utilities/apple_pay/domain.rb +++ b/lib/fat_zebra/utilities/apple_pay/domain.rb @@ -13,8 +13,8 @@ class << self # Register an Apple Pay (web) domain # # @return [FatZebra::Utilities::ApplePay::Domains] response - def register! - response = request(:post, ENDPOINT_URL) + def register!(domain, params = {}) + response = request(:post, path(domain), params) initialize_from(response) end @@ -22,8 +22,8 @@ def register! # Check registration status of an Apple Pay (web) domain # # @return [FatZebra::Utilities::ApplePay::Domains] response - def registered? - response = request(:get, ENDPOINT_URL) + def find!(domain) + response = request(:get, path(domain)) initialize_from(response) end @@ -31,10 +31,16 @@ def registered? # Delete an Apple Pay (web) domain # # @return [FatZebra::Utilities::ApplePay::Domains] response - def delete! - response = request(:delete, ENDPOINT_URL) + def delete!(domain) + response = request(:delete, path(domain)) initialize_from(response) end + + private + + def path(domain) + "#{ENDPOINT_URL}/#{domain}" + end end end end diff --git a/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_delete_/deletes_the_domain.yml b/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_delete_/deletes_the_domain.yml new file mode 100644 index 0000000..55e5e2c --- /dev/null +++ b/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_delete_/deletes_the_domain.yml @@ -0,0 +1,52 @@ +--- +http_interactions: +- request: + method: delete + uri: https://gateway.sandbox.fatzebra.com.au/v1.0/utilities/apple_pay/domains/www.example99.com + body: + encoding: UTF-8 + string: '{"test":true}' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + Authorization: + - Basic VEVTVDpURVNU + response: + status: + code: 202 + message: Accepted + headers: + Date: + - Wed, 28 Feb 2024 06:06:22 GMT + Content-Type: + - application/json; charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Status: + - 202 Accepted + Cache-Control: + - no-store + Vary: + - Accept + Pragma: + - no-cache + X-Request-Id: + - 5162e26069e53a9463e733fd + X-Runtime: + - '0.033018' + X-Backend: + - gateway + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: UTF-8 + string: '{"successful":true,"response":{},"errors":[],"test":true}' + http_version: + recorded_at: Wed, 28 Feb 2024 06:06:22 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_find_/fetches_the_domain.yml b/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_find_/fetches_the_domain.yml new file mode 100644 index 0000000..7fcd2ce --- /dev/null +++ b/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_find_/fetches_the_domain.yml @@ -0,0 +1,86 @@ +--- +http_interactions: +- request: + method: get + uri: https://gateway.sandbox.fatzebra.com.au/v1.0/utilities/apple_pay/domains/www.example.com?test=true + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - application/json + User-Agent: + - Ruby + Host: + - gateway.sandbox.fatzebra.com.au + Authorization: + - Basic VEVTVDpURVNU + Content-Type: + - application/json + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 28 Feb 2024 06:06:22 GMT + Content-Type: + - application/json; charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Status: + - 200 OK + Cache-Control: + - no-store + Vary: + - Accept + Pragma: + - no-cache + X-Request-Id: + - '08106e4f2872aac5474feae5' + X-Runtime: + - '0.029924' + X-Backend: + - gateway + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Content-Security-Policy-Report-Only: + - 'child-src ''self'' blob: *.cardinalcommerce.com fatzebra.statuspage.io; connect-src + ''self'' *.mastercard.com *.forter.com *.pmnts-staging.io *.rollbar.com *.nr-data.net + *.cardinalcommerce.com fatzebra.statuspage.io *.googleapis.com *.google-analytics.com; + default-src ''self'' ''unsafe-eval'' ''unsafe-inline'' *.forter.com *.nr-data.net + blob: *.pmnts-sandbox.io *.rollbar.com fatzebra.statuspage.io *.iovation.com + data: *.googleapis.com *.gstatic.com *.newrelic.com *.bootstrapcdn.com www.google.com + pay.google.com *.google-analytics.com *.gravatar.com; font-src ''self'' cdnjs.cloudflare.com + data: *.gstatic.com *.bootstrapcdn.com *.aexp-static.com; form-action ''self'' + *.cardinalcommerce.com; frame-ancestors ''self''; frame-src ''self'' fatzebra.statuspage.io + *.americanexpress.com www.google.com pay.google.com *.masterpass.com *.visa.com + *.mastercard.com; img-src ''self'' *.visa.com data: *.googleapis.com *.gstatic.com + masterpass.com *.masterpass.com *.americanexpress.com *.google-analytics.com + *.gravatar.com; script-src ''self'' ''unsafe-eval'' ''unsafe-inline'' *.forter.com + *.nr-data.net *.pmnts-sandbox.io *.pmnts-staging.io *.rollbar.com fatzebra.statuspage.io + cdnjs.cloudflare.com *.iovation.com *.jquery.com *.newrelic.com *.googleapis.com + *.cardinalcommerce.com *.bootstrapcdn.com wasm-eval *.google-analytics.com + *.googletagmanager.com; script-src-attr ''unsafe-inline''; script-src-elem + ''self'' ''unsafe-inline'' *.forter.com *.nr-data.net *.pmnts-sandbox.io *.rollbar.com + fatzebra.statuspage.io *.iovation.com *.jquery.com cdnjs.cloudflare.com *.pmnts-staging.io + *.aexp-static.com *.newrelic.com *.googleapis.com *.americanexpress.com www.google.com + pay.google.com *.visa.com *.masterpass.com *.mastercard.com *.google-analytics.com + *.gstatic.com *.bootstrapcdn.com; style-src ''self'' ''unsafe-eval'' ''unsafe-inline'' + *.bootstrapcdn.com *.googleapis.com; style-src-attr ''unsafe-inline''; style-src-elem + ''unsafe-inline'' ''self'' *.googleapis.com cdnjs.cloudflare.com *.bootstrapcdn.com; + worker-src blob:; report-uri https://fatzebra.report-uri.com/r/d/csp/wizard' + Nel: + - '{"report_to":"default","max_age":31536000,"include_subdomains":true}' + Report-To: + - '{"group":"default","max_age":31536000,"endpoints":[{"url":"https://fatzebra.report-uri.com/a/d/g"}],"include_subdomains":true}' + body: + encoding: UTF-8 + string: '{"successful":true,"response":{"status":"Active","domain":"www.example.com","created_at":"2023-04-14T15:15:45+10:00","updated_at":"2023-04-14T05:15:47+00:00"},"errors":[],"test":true}' + http_version: + recorded_at: Wed, 28 Feb 2024 06:06:22 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_register_/registers_the_domain.yml b/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_register_/registers_the_domain.yml new file mode 100644 index 0000000..037d08f --- /dev/null +++ b/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_register_/registers_the_domain.yml @@ -0,0 +1,84 @@ +--- +http_interactions: +- request: + method: post + uri: https://gateway.sandbox.fatzebra.com.au/v1.0/utilities/apple_pay/domains/www.example99.com + body: + encoding: UTF-8 + string: '{"async":false,"test":true}' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - application/json + User-Agent: + - Ruby + Authorization: + - Basic VEVTVDpURVNU + Content-Type: + - application/json + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 28 Feb 2024 06:06:21 GMT + Content-Type: + - application/json; charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Status: + - 200 OK + Cache-Control: + - no-store + Vary: + - Accept + Pragma: + - no-cache + X-Request-Id: + - 567ad3e606bf6c5b7012a787 + X-Runtime: + - '3.091697' + X-Backend: + - gateway + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Content-Security-Policy-Report-Only: + - 'child-src ''self'' blob: *.cardinalcommerce.com fatzebra.statuspage.io; connect-src + ''self'' *.mastercard.com *.forter.com *.pmnts-staging.io *.rollbar.com *.nr-data.net + *.cardinalcommerce.com fatzebra.statuspage.io *.googleapis.com *.google-analytics.com; + default-src ''self'' ''unsafe-eval'' ''unsafe-inline'' *.forter.com *.nr-data.net + blob: *.pmnts-sandbox.io *.rollbar.com fatzebra.statuspage.io *.iovation.com + data: *.googleapis.com *.gstatic.com *.newrelic.com *.bootstrapcdn.com www.google.com + pay.google.com *.google-analytics.com *.gravatar.com; font-src ''self'' cdnjs.cloudflare.com + data: *.gstatic.com *.bootstrapcdn.com *.aexp-static.com; form-action ''self'' + *.cardinalcommerce.com; frame-ancestors ''self''; frame-src ''self'' fatzebra.statuspage.io + *.americanexpress.com www.google.com pay.google.com *.masterpass.com *.visa.com + *.mastercard.com; img-src ''self'' *.visa.com data: *.googleapis.com *.gstatic.com + masterpass.com *.masterpass.com *.americanexpress.com *.google-analytics.com + *.gravatar.com; script-src ''self'' ''unsafe-eval'' ''unsafe-inline'' *.forter.com + *.nr-data.net *.pmnts-sandbox.io *.pmnts-staging.io *.rollbar.com fatzebra.statuspage.io + cdnjs.cloudflare.com *.iovation.com *.jquery.com *.newrelic.com *.googleapis.com + *.cardinalcommerce.com *.bootstrapcdn.com wasm-eval *.google-analytics.com + *.googletagmanager.com; script-src-attr ''unsafe-inline''; script-src-elem + ''self'' ''unsafe-inline'' *.forter.com *.nr-data.net *.pmnts-sandbox.io *.rollbar.com + fatzebra.statuspage.io *.iovation.com *.jquery.com cdnjs.cloudflare.com *.pmnts-staging.io + *.aexp-static.com *.newrelic.com *.googleapis.com *.americanexpress.com www.google.com + pay.google.com *.visa.com *.masterpass.com *.mastercard.com *.google-analytics.com + *.gstatic.com *.bootstrapcdn.com; style-src ''self'' ''unsafe-eval'' ''unsafe-inline'' + *.bootstrapcdn.com *.googleapis.com; style-src-attr ''unsafe-inline''; style-src-elem + ''unsafe-inline'' ''self'' *.googleapis.com cdnjs.cloudflare.com *.bootstrapcdn.com; + worker-src blob:; report-uri https://fatzebra.report-uri.com/r/d/csp/wizard' + Nel: + - '{"report_to":"default","max_age":31536000,"include_subdomains":true}' + Report-To: + - '{"group":"default","max_age":31536000,"endpoints":[{"url":"https://fatzebra.report-uri.com/a/d/g"}],"include_subdomains":true}' + body: + encoding: UTF-8 + string: '{"successful":true,"response":{"status":"Active","domain":"www.example99.com","created_at":"2024-02-28T17:06:18+11:00","updated_at":"2024-02-28T06:06:21+00:00"},"errors":[],"test":true}' + http_version: + recorded_at: Wed, 28 Feb 2024 06:06:21 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/lib/fat_zebra/utilities/apple_pay/domain_spec.rb b/spec/lib/fat_zebra/utilities/apple_pay/domain_spec.rb new file mode 100644 index 0000000..de63c5c --- /dev/null +++ b/spec/lib/fat_zebra/utilities/apple_pay/domain_spec.rb @@ -0,0 +1,54 @@ +require 'spec_helper' + +describe FatZebra::Utilities::ApplePay::Domain do + + describe '.register!', :vcr do + subject(:create) { FatZebra::Utilities::ApplePay::Domain.register!(domain, valid_payload) } + + let!(:domain) { "www.example99.com" } + let!(:valid_payload) {{ + async: false + }} + + it "registers the domain" do + expect(create).to be_accepted + expect(create.domain).to eq(domain) + expect(create.status).to eq("Active") + end + # it { is_expected.to be_accepted } + # it { expect(create.domain).to eq(domain) } + # it { expect(create.status).to eq("Active") } + + # context 'validations' do + # let(:customer_valid_payload) {{}} + + # it { expect{ customer }.to raise_error(FatZebra::RequestValidationError) } + # end + end + + describe '.find!', :vcr do + subject(:find) { FatZebra::Utilities::ApplePay::Domain.find!(domain) } + let!(:domain) { "www.example.com" } + + it "fetches the domain" do + expect(find).to be_accepted + expect(find.domain).to eq(domain) + expect(find.status).to eq("Active") + end + + # it { is_expected.to be_accepted } + # it { expect(find.status).to eq("Active") } + # it { expect(find.domain).to eq(domain) } + end + + describe '.delete!', :vcr do + subject(:delete) { FatZebra::Utilities::ApplePay::Domain.delete!(domain) } + let!(:domain) { "www.example99.com" } + + it "deletes the domain" do + expect(delete).to be_accepted + end + + # it { is_expected.to be_accepted } + end +end From c7eea0a4c287789226ad2ebc1b63d4ea3f053f2e Mon Sep 17 00:00:00 2001 From: An Vu Date: Mon, 4 Mar 2024 11:41:37 +1030 Subject: [PATCH 3/3] clean up --- .../_delete_/deletes_the_domain.yml | 8 ++++---- .../_find_/fetches_the_domain.yml | 8 ++++---- ...rs_the_domain.yml => creates_the_domain.yml} | 10 +++++----- .../utilities/apple_pay/domain_spec.rb | 17 +---------------- 4 files changed, 14 insertions(+), 29 deletions(-) rename spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_register_/{registers_the_domain.yml => creates_the_domain.yml} (93%) diff --git a/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_delete_/deletes_the_domain.yml b/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_delete_/deletes_the_domain.yml index 55e5e2c..85bead3 100644 --- a/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_delete_/deletes_the_domain.yml +++ b/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_delete_/deletes_the_domain.yml @@ -21,7 +21,7 @@ http_interactions: message: Accepted headers: Date: - - Wed, 28 Feb 2024 06:06:22 GMT + - Mon, 04 Mar 2024 01:10:33 GMT Content-Type: - application/json; charset=utf-8 Transfer-Encoding: @@ -37,9 +37,9 @@ http_interactions: Pragma: - no-cache X-Request-Id: - - 5162e26069e53a9463e733fd + - 3f319fea5d6aa95004cab8f5 X-Runtime: - - '0.033018' + - '0.033681' X-Backend: - gateway Strict-Transport-Security: @@ -48,5 +48,5 @@ http_interactions: encoding: UTF-8 string: '{"successful":true,"response":{},"errors":[],"test":true}' http_version: - recorded_at: Wed, 28 Feb 2024 06:06:22 GMT + recorded_at: Mon, 04 Mar 2024 01:10:33 GMT recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_find_/fetches_the_domain.yml b/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_find_/fetches_the_domain.yml index 7fcd2ce..e6a2546 100644 --- a/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_find_/fetches_the_domain.yml +++ b/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_find_/fetches_the_domain.yml @@ -25,7 +25,7 @@ http_interactions: message: OK headers: Date: - - Wed, 28 Feb 2024 06:06:22 GMT + - Mon, 04 Mar 2024 01:10:33 GMT Content-Type: - application/json; charset=utf-8 Transfer-Encoding: @@ -41,9 +41,9 @@ http_interactions: Pragma: - no-cache X-Request-Id: - - '08106e4f2872aac5474feae5' + - 5347a0df5e2ebe022d005a3a X-Runtime: - - '0.029924' + - '0.030516' X-Backend: - gateway Strict-Transport-Security: @@ -82,5 +82,5 @@ http_interactions: encoding: UTF-8 string: '{"successful":true,"response":{"status":"Active","domain":"www.example.com","created_at":"2023-04-14T15:15:45+10:00","updated_at":"2023-04-14T05:15:47+00:00"},"errors":[],"test":true}' http_version: - recorded_at: Wed, 28 Feb 2024 06:06:22 GMT + recorded_at: Mon, 04 Mar 2024 01:10:32 GMT recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_register_/registers_the_domain.yml b/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_register_/creates_the_domain.yml similarity index 93% rename from spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_register_/registers_the_domain.yml rename to spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_register_/creates_the_domain.yml index 037d08f..9f6ee2c 100644 --- a/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_register_/registers_the_domain.yml +++ b/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_register_/creates_the_domain.yml @@ -23,7 +23,7 @@ http_interactions: message: OK headers: Date: - - Wed, 28 Feb 2024 06:06:21 GMT + - Mon, 04 Mar 2024 01:10:32 GMT Content-Type: - application/json; charset=utf-8 Transfer-Encoding: @@ -39,9 +39,9 @@ http_interactions: Pragma: - no-cache X-Request-Id: - - 567ad3e606bf6c5b7012a787 + - 298c3b404da4ccb5139e44ce X-Runtime: - - '3.091697' + - '3.097708' X-Backend: - gateway Strict-Transport-Security: @@ -78,7 +78,7 @@ http_interactions: - '{"group":"default","max_age":31536000,"endpoints":[{"url":"https://fatzebra.report-uri.com/a/d/g"}],"include_subdomains":true}' body: encoding: UTF-8 - string: '{"successful":true,"response":{"status":"Active","domain":"www.example99.com","created_at":"2024-02-28T17:06:18+11:00","updated_at":"2024-02-28T06:06:21+00:00"},"errors":[],"test":true}' + string: '{"successful":true,"response":{"status":"Active","domain":"www.example99.com","created_at":"2024-03-04T12:10:29+11:00","updated_at":"2024-03-04T01:10:31+00:00"},"errors":[],"test":true}' http_version: - recorded_at: Wed, 28 Feb 2024 06:06:21 GMT + recorded_at: Mon, 04 Mar 2024 01:10:32 GMT recorded_with: VCR 3.0.3 diff --git a/spec/lib/fat_zebra/utilities/apple_pay/domain_spec.rb b/spec/lib/fat_zebra/utilities/apple_pay/domain_spec.rb index de63c5c..f8020d2 100644 --- a/spec/lib/fat_zebra/utilities/apple_pay/domain_spec.rb +++ b/spec/lib/fat_zebra/utilities/apple_pay/domain_spec.rb @@ -10,20 +10,11 @@ async: false }} - it "registers the domain" do + it "creates the domain" do expect(create).to be_accepted expect(create.domain).to eq(domain) expect(create.status).to eq("Active") end - # it { is_expected.to be_accepted } - # it { expect(create.domain).to eq(domain) } - # it { expect(create.status).to eq("Active") } - - # context 'validations' do - # let(:customer_valid_payload) {{}} - - # it { expect{ customer }.to raise_error(FatZebra::RequestValidationError) } - # end end describe '.find!', :vcr do @@ -35,10 +26,6 @@ expect(find.domain).to eq(domain) expect(find.status).to eq("Active") end - - # it { is_expected.to be_accepted } - # it { expect(find.status).to eq("Active") } - # it { expect(find.domain).to eq(domain) } end describe '.delete!', :vcr do @@ -48,7 +35,5 @@ it "deletes the domain" do expect(delete).to be_accepted end - - # it { is_expected.to be_accepted } end end