Skip to content

Commit

Permalink
Bypass asset lookup in tests until calls to image_path can be found a…
Browse files Browse the repository at this point in the history
…nd removed.
  • Loading branch information
hayesr committed Feb 7, 2017
1 parent ad522ca commit 4247e02
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -14,6 +14,13 @@
require 'vcr'
require 'cgi'

# FIXME: This bypasses the lookup of Javascript dependencies in tests until they can be found and uncoupled
class << ActionController::Base.helpers
def image_path(path, options = {})
path
end
end

# Fail tests that try to include stuff in `main`
require_relative 'support/test_contamination'
Spec::Support::TestContamination.setup
Expand Down

0 comments on commit 4247e02

Please sign in to comment.