Skip to content

Commit

Permalink
Implement feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
hunchr committed Nov 6, 2024
1 parent 89c42d8 commit e5a0428
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ AllCops:
Exclude:
- gemfiles/**/*
- spec/dummy/db/schema.rb

RSpec/ExampleLength:
CountAsOne:
- array
- hash
- method_call
10 changes: 0 additions & 10 deletions spec/lib/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,4 @@
expect(config.included_attributes).to eq %i[name birthdate]
expect(config.excluded_attributes).to eq %i[created_at]
end

it "doesn't have any other model configs" do # rubocop:disable RSpec/ExampleLength
expect do
Hotsheet.configure do |config|
config.model :Author do |model|
model.attributes = %i[name birthdate]
end
end
end.to raise_error NoMethodError
end
end

0 comments on commit e5a0428

Please sign in to comment.