spec/features/legislation/draft_versions_spec.rb

Summary

Maintainability
B
5 hrs
Test Coverage

File draft_versions_spec.rb has 251 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require 'rails_helper'

feature 'Legislation Draft Versions' do
  let(:user) { create(:user) }
  let(:administrator) do
Severity: Minor
Found in spec/features/legislation/draft_versions_spec.rb - About 2 hrs to fix

    TODO found
    Open

        # TODO i18n : broken because of test locale change

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it "shows an unpublished version to admins" do
          login_as(administrator)
    
          visit legislation_process_draft_version_path(@process, @draft_version_3)
    
    
    Severity: Minor
    Found in spec/features/legislation/draft_versions_spec.rb and 1 other location - About 35 mins to fix
    spec/features/legislation/draft_versions_spec.rb on lines 115..125

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 34.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it "shows an unpublished version to admins" do
          login_as(administrator)
    
          visit legislation_process_draft_version_changes_path(@process, @draft_version_3)
    
    
    Severity: Minor
    Found in spec/features/legislation/draft_versions_spec.rb and 1 other location - About 35 mins to fix
    spec/features/legislation/draft_versions_spec.rb on lines 41..51

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 34.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it "shows the text body for this version" do
          visit legislation_process_draft_version_path(@process, @draft_version_1)
    
          expect(page).to have_content("Body of the first version")
    
    
    Severity: Minor
    Found in spec/features/legislation/draft_versions_spec.rb and 1 other location - About 30 mins to fix
    spec/features/legislation/draft_versions_spec.rb on lines 103..111

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 32.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        it "shows the changes for this version" do
          visit legislation_process_draft_version_changes_path(@process, @draft_version_1)
    
          expect(page).to have_content("Changes for first version")
    
    
    Severity: Minor
    Found in spec/features/legislation/draft_versions_spec.rb and 1 other location - About 30 mins to fix
    spec/features/legislation/draft_versions_spec.rb on lines 29..37

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 32.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        it "switches to another version without js" do
          visit legislation_process_draft_version_path(@process, @draft_version_1)
          expect(page).to have_content("Body of the first version")
    
          select("Version 2")
    Severity: Minor
    Found in spec/features/legislation/draft_versions_spec.rb and 2 other locations - About 20 mins to fix
    spec/features/legislation/draft_versions_spec.rb on lines 129..137
    spec/features/legislation/draft_versions_spec.rb on lines 285..293

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 27.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

          scenario "without js" do
            visit legislation_process_draft_version_annotations_path(@process, @draft_version_1)
            expect(page).to have_content("quote for version 1")
    
            select("Version 2")
    Severity: Minor
    Found in spec/features/legislation/draft_versions_spec.rb and 2 other locations - About 20 mins to fix
    spec/features/legislation/draft_versions_spec.rb on lines 55..63
    spec/features/legislation/draft_versions_spec.rb on lines 129..137

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 27.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        it "switches to another version without js" do
          visit legislation_process_draft_version_changes_path(@process, @draft_version_1)
          expect(page).to have_content("Changes for first version")
    
          select("Version 2")
    Severity: Minor
    Found in spec/features/legislation/draft_versions_spec.rb and 2 other locations - About 20 mins to fix
    spec/features/legislation/draft_versions_spec.rb on lines 55..63
    spec/features/legislation/draft_versions_spec.rb on lines 285..293

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 27.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        it "switches to another version with js", :js do
          visit legislation_process_draft_version_path(@process, @draft_version_1)
          expect(page).to have_content("Body of the first version")
    
          select("Version 2")
    Severity: Minor
    Found in spec/features/legislation/draft_versions_spec.rb and 2 other locations - About 15 mins to fix
    spec/features/legislation/draft_versions_spec.rb on lines 140..147
    spec/features/legislation/draft_versions_spec.rb on lines 296..303

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 26.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

          scenario "with js", :js do
            visit legislation_process_draft_version_annotations_path(@process, @draft_version_1)
            expect(page).to have_content("quote for version 1")
    
            select("Version 2")
    Severity: Minor
    Found in spec/features/legislation/draft_versions_spec.rb and 2 other locations - About 15 mins to fix
    spec/features/legislation/draft_versions_spec.rb on lines 66..73
    spec/features/legislation/draft_versions_spec.rb on lines 140..147

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 26.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        it "switches to another version with js", :js do
          visit legislation_process_draft_version_changes_path(@process, @draft_version_1)
          expect(page).to have_content("Changes for first version")
    
          select("Version 2")
    Severity: Minor
    Found in spec/features/legislation/draft_versions_spec.rb and 2 other locations - About 15 mins to fix
    spec/features/legislation/draft_versions_spec.rb on lines 66..73
    spec/features/legislation/draft_versions_spec.rb on lines 296..303

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 26.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

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

                                                       ranges: [{"start" => "/p[1]", "startOffset" => 6, "end" => "/p[1]", "endOffset" => 11}])

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

                                          ranges: [{"start" => "/p[1]", "startOffset" => 6, "end" => "/p[1]", "endOffset" => 11}])

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

          visit legislation_process_draft_version_annotations_path(@draft_version.process, @draft_version)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_path(@process, @draft_version_1)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

            create(:legislation_annotation, draft_version: @draft_version_2, text: "annotation for version 2", quote: "quote for version 2",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

            visit legislation_process_draft_version_annotations_path(@process, @draft_version_1)

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

          annotation1 = create(:legislation_annotation, draft_version: draft_version, text: "my annotation",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          @draft_version_2 = create(:legislation_draft_version, process: @process, title: "Version 2",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          create(:legislation_annotation, draft_version: @draft_version, text: "my other annotation", quote: "audiam",

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

                                                               body: "Final body", status: "published", final_version: true)

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

                                            ranges: [{"start" => "/p[1]", "startOffset" => 11, "end" => "/p[1]", "endOffset" => 30}])

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

            create(:legislation_annotation, draft_version: @draft_version_2, text: "annotation for version 2", quote: "quote for version 2",

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

                                            ranges: [{"start" => "/p[1]", "startOffset" => 11, "end" => "/p[1]", "endOffset" => 30}])

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_changes_path(@process, @draft_version_1)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_changes_path(@process, @draft_version_1)

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

                                                        ranges: [{"start" => "/p[1]", "startOffset" => 1, "end" => "/p[1]", "endOffset" => 10}])

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          @draft_version_3 = create(:legislation_draft_version, process: @process, title: "Version 3",

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

          @draft_version_1 = create(:legislation_draft_version, process: @process, title: "Version 1", body: "Body of the first version",

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

                                          ranges: [{"start" => "/p[1]", "startOffset" => 12, "end" => "/p[1]", "endOffset" => 19}])

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

                                                                              title: "Version 2", body: "Text with quote for version 2")

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          @draft_version_1 = create(:legislation_draft_version, process: @process, title: "Version 1",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_changes_path(@process, @draft_version_3)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_changes_path(@process, @draft_version_1)

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

          @draft_version_3 = create(:legislation_draft_version, process: @process, title: "Version 3", body: "Body of the third version",

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

          annotation1 = create(:legislation_annotation, draft_version: draft_version, text: "my annotation",

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

                                                                              title: "Version 1", body: "Text with quote for version 1")

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

                                                        ranges: [{"start" => "/p[3]", "startOffset" => 6, "end" => "/p[3]", "endOffset" => 11}])

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

            create(:legislation_annotation, draft_version: @draft_version_1, text: "annotation for version 1", quote: "quote for version 1",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

            visit legislation_process_draft_version_annotations_path(@process, @draft_version_1)

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

                                                                body: "Body of the second version", status: "published")

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

                                          ranges: [{"start" => "/p[3]", "startOffset" => 6, "end" => "/p[3]", "endOffset" => 11}])

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

          visit legislation_process_draft_version_annotation_path(@draft_version.process, @draft_version, @annotation)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_annotations_path(@draft_version.process, @draft_version)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

            @draft_version_2 = create(:legislation_draft_version, :published, process: @process,

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_path(@process, @draft_version_3)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_changes_path(@process, @draft_version_1)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

            @draft_version_1 = create(:legislation_draft_version, :published, process: @process,

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

          create(:legislation_annotation, draft_version: @draft_version, text: "my annotation",       quote: "ipsum",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

            visit legislation_process_draft_version_annotations_path(@process, @draft_version_1)

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

          annotation = create(:legislation_annotation, draft_version: draft_version, text: "my annotation",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          create(:legislation_annotation, draft_version: @draft_version, text: "my annotation",       quote: "ipsum",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_annotations_path(@draft_version.process, @draft_version)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

            visit legislation_process_draft_version_annotations_path(@process, @draft_version_1)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_annotation_path(@draft_version.process, @draft_version, @annotation)

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

          create(:legislation_annotation, draft_version: @draft_version, text: "my other annotation", quote: "audiam",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_changes_path(@process, @draft_version_1)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          @annotation = create(:legislation_annotation, draft_version: @draft_version, text: "my other annotation", quote: "audiam",

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

                                                                changelog: "Changes for second version", status: "published")

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

                                                        ranges: [{"start" => "/p[1]", "startOffset" => 5, "end" => "/p[1]", "endOffset" => 10}])

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

                                          ranges: [{"start" => "/p[1]", "startOffset" => 6, "end" => "/p[1]", "endOffset" => 11}])

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_path(@process, @draft_version_1)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_path(@process, @draft_version_1)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

            visit legislation_process_draft_version_path(@process, final_version)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          @draft_version_1 = create(:legislation_draft_version, process: @process, title: "Version 1", body: "Body of the first version",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_changes_path(@process, @draft_version_1)

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

            create(:legislation_annotation, draft_version: @draft_version_1, text: "annotation for version 1", quote: "quote for version 1",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_path(@process, @draft_version_1)

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

                                                                body: "Body of the third version", status: "draft")

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

            final_version = create(:legislation_draft_version, process: @process, title: "Final version",

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

          @annotation = create(:legislation_annotation, draft_version: @draft_version, text: "my other annotation", quote: "audiam",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_path(@process, @draft_version_3)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_annotation_path(@draft_version.process, @draft_version, @annotation)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_annotation_path(@draft_version.process, @draft_version, @annotation)

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

                                                                body: "Body of the first version", status: "published")

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

                                                                changelog: "Changes for first version", status: "published")

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

          @draft_version_2 = create(:legislation_draft_version, process: @process, title: "Version 2", body: "Body of the second version",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_path(@process, @draft_version_1)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          @draft_version_2 = create(:legislation_draft_version, process: @process, title: "Version 2", body: "Body of the second version",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          create(:legislation_annotation, draft_version: @draft_version, text: "my annotation", quote: "ipsum",

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

                                                                changelog: "Changes for third version", status: "draft")

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

                                                        ranges: [{"start" => "/p[1]", "startOffset" => 1, "end" => "/p[1]", "endOffset" => 5}])

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

          annotation2 = create(:legislation_annotation, draft_version: draft_version, text: "my other annotation",

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

          create(:legislation_annotation, draft_version: @draft_version, text: "my annotation", quote: "ipsum",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_path(@process, @draft_version_1)

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

            final_version = create(:legislation_draft_version, process: @process, title: "Final version",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          @draft_version_3 = create(:legislation_draft_version, process: @process, title: "Version 3", body: "Body of the third version",

    Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
    Open

          visit legislation_process_draft_version_changes_path(@process, @draft_version_3)

    There are no issues that match your filters.

    Category
    Status