spec/jortt/client_spec.rb in jortt-3.0.0 vs spec/jortt/client_spec.rb in jortt-4.0.0
- old
+ new
@@ -26,18 +26,19 @@
context 'configured' do
let(:client) { described_class.new(app_name: 'app', api_key: 'secret') }
describe '#customers' do
subject { client.customers }
- it { should be_instance_of(described_class::Resource) }
- its(:singular) { should eq(:customer) }
- its(:plural) { should eq(:customers) }
+ it { should be_instance_of(described_class::Customers) }
end
describe '#invoices' do
subject { client.invoices }
- it { should be_instance_of(described_class::Resource) }
- its(:singular) { should eq(:invoice) }
- its(:plural) { should eq(:invoices) }
+ it { should be_instance_of(described_class::Invoices) }
+ end
+
+ describe '#invoice' do
+ subject { client.invoice('foo') }
+ it { should be_instance_of(described_class::Invoice) }
end
end
end