spec/models/item_spec.rb
Block has too many lines. [35/25] Open
Open
describe Item, type: :model do
describe "validation" do
it "should not allow invalid urls" do
item = Item.new(discogs_url: "supsupsup")
expect(item).not_to be_valid
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.