spec/models/legislation/draft_version_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Inconsistent indentation detected. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation)
Open

  it "is valid" do
    expect(legislation_draft_version).to be_valid
  end

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

Inconsistent indentation detected. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation)
Open

  def body_markdown
<<-BODY_MARKDOWN
# Title 1

Some paragraph.

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

Inconsistent indentation detected. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation)
Open

  def body_html
<<-BODY_HTML
<h1 id="title-1">Title 1</h1>

<p>Some paragraph.</p>

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

Inconsistent indentation detected. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation)
Open

  it "renders and saves the html from the markdown body field" do
    legislation_draft_version.body = body_markdown

    legislation_draft_version.save!

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

Inconsistent indentation detected. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation)
Open

  def toc_html
<<-TOC_HTML
<ul>
<li>
<a href="#title-1">Title 1</a>

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

Inconsistent indentation detected. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation)
Open

  it "renders and saves the html from the markdown body field with alternative translation" do
    legislation_draft_version.title_fr = "Français"
    legislation_draft_version.body_fr = body_markdown

    legislation_draft_version.save!

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

There are no issues that match your filters.

Category
Status