Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanita Barrett committed Oct 1, 2018
1 parent 203ae61 commit b3e0f0c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion spec/lib/components/contents_list_helper_spec.rb
@@ -1,8 +1,9 @@
require 'spec_helper'
require 'action_view'
include ActionView::Helpers::SanitizeHelper

RSpec.describe GovukPublishingComponents::Presenters::ContentsListHelper do
include ActionView::Helpers::SanitizeHelper

describe "Contents list helper" do
it "wraps a number and text in separate span elements" do
assert_split_number_and_text('1. Thing', '1.', 'Thing')
Expand Down
3 changes: 2 additions & 1 deletion spec/lib/components/step_by_step_nav_helper_spec.rb
@@ -1,8 +1,9 @@
require 'spec_helper'
require 'action_view'
include ActionView::Helpers::SanitizeHelper

RSpec.describe GovukPublishingComponents::Presenters::StepByStepNavHelper do
include ActionView::Helpers::SanitizeHelper

describe "Step by step navigation helper" do
step_helper = GovukPublishingComponents::Presenters::StepByStepNavHelper.new

Expand Down
4 changes: 2 additions & 2 deletions spec/lib/presenters/taxonomy_navigation_spec.rb
Expand Up @@ -2,9 +2,9 @@
require 'webmock/rspec'
require 'gds_api/test_helpers/rummager'

include GdsApi::TestHelpers::Rummager

RSpec.describe GovukPublishingComponents::Presenters::TaxonomyNavigation do
include GdsApi::TestHelpers::Rummager

describe '#sidebar' do
it 'can handle any valid content item' do
stub_any_rummager_search_to_return_no_results
Expand Down

0 comments on commit b3e0f0c

Please sign in to comment.