spec/shared/features/mappable.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

    scenario "Should not display map on #{mappable_factory_name} show when marker is not defined", :js do
Severity: Minor
Found in spec/shared/features/mappable.rb by rubocop

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

    scenario "Should not display map on #{mappable_factory_name} show page when feature.map is disable", :js do
Severity: Minor
Found in spec/shared/features/mappable.rb by rubocop

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

      expect(page).to have_selector(".map_location[data-marker-latitude='#{map_location.latitude}']")
Severity: Minor
Found in spec/shared/features/mappable.rb by rubocop

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

      expect(page).to have_selector(".map_location[data-marker-latitude='#{mappable.map_location.latitude}']")
Severity: Minor
Found in spec/shared/features/mappable.rb by rubocop

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

shared_examples "mappable" do |mappable_factory_name, mappable_association_name, mappable_new_path, mappable_edit_path, mappable_show_path, mappable_path_arguments|
Severity: Minor
Found in spec/shared/features/mappable.rb by rubocop

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

  expect(find("##{mappable_factory_name}_map_location_attributes_latitude", visible: false).value).to eq "51.48"
Severity: Minor
Found in spec/shared/features/mappable.rb by rubocop

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

  expect(find("##{mappable_factory_name}_map_location_attributes_longitude", visible: false).value).to eq "0.0"
Severity: Minor
Found in spec/shared/features/mappable.rb by rubocop

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

  let!(:map_location) { create(:map_location, "#{mappable_factory_name}_map_location".to_sym, "#{mappable_association_name}": mappable) }
Severity: Minor
Found in spec/shared/features/mappable.rb by rubocop

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

      expect(page).to have_selector(".map_location[data-marker-latitude='#{mappable.map_location.latitude}']")
Severity: Minor
Found in spec/shared/features/mappable.rb by rubocop

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

    scenario "Can not display map on #{mappable_factory_name} edit when feature.map is disabled", :js do
Severity: Minor
Found in spec/shared/features/mappable.rb by rubocop

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

      expect(page).not_to have_selector(".map_location[data-marker-latitude='#{map_location.latitude}']")
Severity: Minor
Found in spec/shared/features/mappable.rb by rubocop

There are no issues that match your filters.

Category
Status