Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
Remove code to use components from Static
Browse files Browse the repository at this point in the history
  • Loading branch information
tijmenb committed Jun 20, 2018
1 parent 439afe1 commit c7d9c7f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
2 changes: 0 additions & 2 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ class ApplicationController < ActionController::Base
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception

include Slimmer::GovukComponents

before_action :slimmer_headers

private
Expand Down
17 changes: 0 additions & 17 deletions spec/support/app_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,23 +89,6 @@ def expect_change_note(change_note, options)
expect(page).to have_content(change_note)
end
end

def expect_component(component_type, in_scope: nil)
component_selector = shared_component_selector(component_type)
component_selector = "#{in_scope} #{component_selector}" if in_scope.present?
if block_given?
within(component_selector) do
component_details = JSON.parse(page.text)
yield component_details
end
else
expect(page).to have_selector(component_selector)
end
end

def expect_no_component(component_type)
expect(page).not_to have_selector(shared_component_selector(component_type))
end
end

RSpec.configuration.include AppHelpers, type: :feature

0 comments on commit c7d9c7f

Please sign in to comment.