Skip to content

Commit

Permalink
add get pobs
Browse files Browse the repository at this point in the history
  • Loading branch information
wsethbrown committed Jan 25, 2024
1 parent 0a33eca commit 8d925c1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions spec/fixtures/performance_obligations/index-200.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?>
<performance_obligations type="array">
<performance_obligation href="https://your-subdomain.recurly.com/v2/performance_obligations/6">
<performance_obligation href="https://api.recurly.com/v2/performance_obligations/6">
<id>6</id>
<name>Over Time (Daily)</name>
<created_at type="datetime">2023-08-11T18:57:57Z</created_at>
<updated_at type="datetime">2023-08-11T18:57:57Z</updated_at>
</performance_obligation>
<performance_obligation href="https://your-subdomain.recurly.com/v2/performance_obligations/5">
<performance_obligation href="https://api.recurly.com/v2/performance_obligations/5">
<id>5</id>
<name>Over Time (Partial Monthly)</name>
<created_at type="datetime">2023-08-11T18:57:57Z</created_at>
<updated_at type="datetime">2023-08-11T18:57:57Z</updated_at>
</performance_obligation>
<performance_obligation href="https://your-subdomain.recurly.com/v2/performance_obligations/4">
<performance_obligation href="https://api.recurly.com/v2/performance_obligations/4">
<id>4</id>
<name>Point in Time</name>
<created_at type="datetime">2023-08-11T18:57:57Z</created_at>
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/performance_obligations/show-200.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ HTTP/1.1 200 OK
Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?>
<performance_obligation href="https://your-subdomain.recurly.com/v2/performance_obligations/6">
<performance_obligation href="https://api.recurly.com/v2/performance_obligations/6">
<id>6</id>
<name>Over Time (Daily)</name>
<created_at type="datetime">2023-08-11T18:57:57Z</created_at>
Expand Down
9 changes: 5 additions & 4 deletions spec/recurly/performance_obligation_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'

describe Recurly::PerformanceObligation do
describe PerformanceObligation do
let(:performance_obligation) {
stub_api_request(:get, "performance_obligations/6", "performance_obligations/show-200")
Recurly::PerformanceObligation.find '6'
Expand All @@ -18,8 +18,8 @@

it "has correct attributes" do
expect(performance_obligation.id).must_equal('6')
expect(performance_obligation.name).to eq('OVER_TIME_DAILY')
expect(performance_obligation.created_at)to.be_present
expect(performance_obligation.name).must_equal('Over Time (Daily)')
expect(refute_nil(performance_obligation.created_at))
end
end

Expand All @@ -29,4 +29,5 @@
expect(performance_obligations.count).must_equal(3)
end
end
end
end
end

0 comments on commit 8d925c1

Please sign in to comment.