Skip to content

Commit

Permalink
remove CI offend
Browse files Browse the repository at this point in the history
  • Loading branch information
faiberrec authored and douglasmiller committed Jan 22, 2024
1 parent 1a5d765 commit f1241b7
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/recurly/xml/rexml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def each_element xpath = nil
def each element = root
element.each_element do |el|
yield el
each el, &Proc.new { |e| yield e }
each el, &Proc.new
end
end

Expand Down
2 changes: 1 addition & 1 deletion scripts/test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -e

rake spec
rake spec --trace
6 changes: 3 additions & 3 deletions spec/fixtures/general_ledger_accounts/create-201.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
HTTP/1.1 201 Created
Content-Type: application/xml; charset=utf-8
Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/u90r5deeaxix">
<id>u90r5deeaxix</id>
<code>code1</code>
<account_type>revenue</account_type>
<description>string</description>
<created_at type="datetime">2024-01-16T14:34:16Z</created_at>
<updated_at type="datetime">2024-01-16T14:34:16Z</updated_at>
</general_ledger_account>
</general_ledger_account>
6 changes: 3 additions & 3 deletions spec/fixtures/general_ledger_accounts/index-200.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
HTTP/1.1 200 OK
Content-Type: application/xml; charset=utf-8
Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<general_ledger_accounts type="array">
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/u90r5deeaxix">
<id>u90r5deeaxix</id>
Expand Down Expand Up @@ -107,4 +107,4 @@ HTTP/1.1 200 OK
<created_at type="datetime">2023-08-15T21:42:35Z</created_at>
<updated_at type="datetime">2023-09-13T15:38:04Z</updated_at>
</general_ledger_account>
</general_ledger_accounts>
</general_ledger_accounts>
6 changes: 3 additions & 3 deletions spec/fixtures/general_ledger_accounts/show-200.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
HTTP/1.1 200 OK
Content-Type: application/xml; charset=utf-8
Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/u90r5deeaxix">
<id>u90r5deeaxix</id>
<code>code1</code>
<account_type>revenue</account_type>
<description>string</description>
<created_at type="datetime">2024-01-16T14:34:16Z</created_at>
<updated_at type="datetime">2024-01-16T14:34:16Z</updated_at>
</general_ledger_account>
</general_ledger_account>
4 changes: 2 additions & 2 deletions spec/recurly/general_ledger_account_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

describe GeneralLedgerAccount do
let(:general_ledger_account) {
stub_api_request(:get, "https://api.recurly.com/v2/general_ledger_accounts/u90r5deeaxix", "general_ledger_accounts/show-200")
stub_api_request(:get, "general_ledger_accounts/u90r5deeaxix", "general_ledger_accounts/show-200")
Recurly::GeneralLedgerAccount.find 'u90r5deeaxix'
}

let(:general_ledger_accounts) {
stub_api_request(:get, "https://api.recurly.com/v2/general_ledger_accounts", "general_ledger_accounts/index-200")
stub_api_request(:get, "general_ledger_accounts", "general_ledger_accounts/index-200")
Recurly::GeneralLedgerAccount.all
}

Expand Down

0 comments on commit f1241b7

Please sign in to comment.