spec/models/related_content_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [129/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    expect(build(:related_content, parent_relationable: parent_relationable, child_relationable: child_relationable)).to be_valid
Severity: Minor
Found in spec/models/related_content_spec.rb by rubocop

Line is too long. [163/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    new_related_content = build(:related_content, parent_relationable: related_content.parent_relationable, child_relationable: related_content.child_relationable)
Severity: Minor
Found in spec/models/related_content_spec.rb by rubocop

Line is too long. [107/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(parent_relationable.relationed_contents.first.class.name).to eq(child_relationable.class.name)
Severity: Minor
Found in spec/models/related_content_spec.rb by rubocop

Line is too long. [157/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    let(:related_content) { build(:related_content, parent_relationable: parent_relationable, child_relationable: child_relationable, author: build(:user)) }
Severity: Minor
Found in spec/models/related_content_spec.rb by rubocop

Line is too long. [134/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      create(:related_content, parent_relationable: parent_relationable, child_relationable: child_relationable, author: build(:user))
Severity: Minor
Found in spec/models/related_content_spec.rb by rubocop

Line is too long. [129/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    expect(build(:related_content, parent_relationable: parent_relationable, child_relationable: child_relationable)).to be_valid
Severity: Minor
Found in spec/models/related_content_spec.rb by rubocop

Line is too long. [150/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    related_content = create(:related_content, parent_relationable: parent_relationable, child_relationable: child_relationable, author: build(:user))
Severity: Minor
Found in spec/models/related_content_spec.rb by rubocop

Line is too long. [106/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(related_content.opposite_related_content.child_relationable_id).to eq(parent_relationable.id)
Severity: Minor
Found in spec/models/related_content_spec.rb by rubocop

Line is too long. [116/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(related_content.opposite_related_content.parent_relationable_type).to eq(child_relationable.class.name)
Severity: Minor
Found in spec/models/related_content_spec.rb by rubocop

Line is too long. [116/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(related_content.opposite_related_content.child_relationable_type).to eq(parent_relationable.class.name)
Severity: Minor
Found in spec/models/related_content_spec.rb by rubocop

Line is too long. [151/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      related_content = create(:related_content, parent_relationable: parent_relationable, child_relationable: create(:proposal), author: build(:user))
Severity: Minor
Found in spec/models/related_content_spec.rb by rubocop

Line is too long. [129/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    expect(build(:related_content, parent_relationable: parent_relationable, child_relationable: child_relationable)).to be_valid
Severity: Minor
Found in spec/models/related_content_spec.rb by rubocop

Line is too long. [106/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(related_content.opposite_related_content.parent_relationable_id).to eq(child_relationable.id)
Severity: Minor
Found in spec/models/related_content_spec.rb by rubocop

Line is too long. [108/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      expect(related_content.opposite_related_content.opposite_related_content.id).to eq(related_content.id)
Severity: Minor
Found in spec/models/related_content_spec.rb by rubocop

There are no issues that match your filters.

Category
Status