Skip to content

Commit

Permalink
Fix Rubocop / RSpec errors (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
sos4nt authored Oct 26, 2023
1 parent 309965d commit e119b98
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 4 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
let(:base) { described_class.new(id: 123, foo: 'bar') }

before do
allow(described_class).to receive(:base_path).and_return('/bases')
allow(described_class).to receive(:resource_name).and_return('base')
allow(described_class).to \
receive_messages(base_path: '/bases', resource_name: 'base')
end

it 'raises NoMethodError when attribute not available' do
Expand Down Expand Up @@ -48,7 +48,7 @@

it 'calls the Search with the right params' do
expect(Billomat::Search).to \
receive(:new).with(described_class, foo: 'bar')
receive(:new).with(described_class, { foo: 'bar' })
described_class.where(foo: 'bar')
end
end
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'spec_helper'

RSpec.describe Billomat::Models::InvoiceItem do
RSpec.describe Billomat::Models::InvoicePayment do
it 'has a base path' do
expect(described_class.base_path).to be_a(String)
end
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e119b98

Please sign in to comment.