spec/models/legislation/draft_version_spec.rb
Inconsistent indentation detected. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation) Open
Open
it "is valid" do
expect(legislation_draft_version).to be_valid
end
- Read upRead up
- Exclude checks
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
Open
def body_markdown
<<-BODY_MARKDOWN
# Title 1
Some paragraph.
- Read upRead up
- Exclude checks
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
Open
def body_html
<<-BODY_HTML
<h1 id="title-1">Title 1</h1>
<p>Some paragraph.</p>
- Read upRead up
- Exclude checks
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
Open
it "renders and saves the html from the markdown body field" do
legislation_draft_version.body = body_markdown
legislation_draft_version.save!
- Read upRead up
- Exclude checks
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
Open
def toc_html
<<-TOC_HTML
<ul>
<li>
<a href="#title-1">Title 1</a>
- Read upRead up
- Exclude checks
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
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!
- Read upRead up
- Exclude checks
This cops checks for inconsistent indentation.
Example:
class A
def test
puts 'hello'
puts 'world'
end
end