spec/features/tags/budget_investments_spec.rb

Summary

Maintainability
A
2 hrs
Test Coverage

File budget_investments_spec.rb has 270 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require 'rails_helper'

feature 'Tags' do

  let(:author)  { create(:user, :level_two, username: 'Isabel') }
Severity: Minor
Found in spec/features/tags/budget_investments_spec.rb - About 2 hrs to fix

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

        let!(:investment2) { create(:budget_investment, heading: heading, tag_list: tag_medio_ambiente.name) }

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

        investment = create(:budget_investment, heading: heading, tag_list: "#{tag_medio_ambiente.name}, #{tag_economia.name}")

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

        fill_in 'budget_investment_tag_list', with: "Impuestos, Economía, Hacienda, Sanidad, Educación, Política, Igualdad"

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

        fill_in_ckeditor 'budget_investment_description', with: 'If I had a gym near my place I could go do Zumba'

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

        tag_list = ["Hacienda", "Economía", "Medio Ambiente", "Corrupción", "Fiestas populares", "Prensa"]

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

        fill_in_ckeditor 'budget_investment_description', with: 'If I had a gym near my place I could go do Zumba'

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

        fill_in_ckeditor 'budget_investment_description', with: 'If I had a gym near my place I could go do Zumba'

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

        let!(:investment1) { create(:budget_investment, heading: heading, tag_list: tag_medio_ambiente.name) }

    There are no issues that match your filters.

    Category
    Status