Skip to content

Commit

Permalink
Removing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasmiller committed Jan 22, 2024
1 parent aaceb55 commit e0467f1
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions spec/recurly/general_ledger_account_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,4 @@
end
end

describe "#index" do
it "returns a list of general ledger accounts" do
expect(general_ledger_accounts.count).must_equal(13)
end
end

describe "#save" do
let(:general_ledger_account) { GeneralLedgerAccount.new }
it "must return true when new and valid" do
stub_api_request :post, 'general_ledger_accounts', 'general_ledger_accounts/create-201'
general_ledger_account.save.must_equal true
general_ledger_account.code.must_equal 'code1'
end
end

describe "#update" do
it "sends changed attributes to the server" do
stub_api_request :get, 'general_ledger_accounts/u90r5deeaxix', 'general_ledger_accounts/show-200'
stub_request(:put, "https://api.recurly.com/v2/general_ledger_accounts/u90r5deeaxix").
with(:body => "<general_ledger_account><description>new_string</description></general_ledger_account>",
:headers => Recurly::API.headers).to_return(:status => 200, :body => "", :headers => {})
general_ledger_account.update_attributes({ description: 'new_string' })
end
end
end

0 comments on commit e0467f1

Please sign in to comment.