test/helper.rb in dassets-0.15.0 vs test/helper.rb in dassets-0.15.1

- old
+ new

@@ -1,8 +1,10 @@ -# this file is automatically required when you run `assert` -# put any test helpers here +# frozen_string_literal: true +# This file is automatically required when you run `assert` +# put any test helpers here. + # add the root dir to the load path $LOAD_PATH.unshift(File.expand_path("../..", __FILE__)) # require pry for debugging (`binding.pry`) require "pry" @@ -10,23 +12,33 @@ require "test/support/factory" require "pathname" TEST_SUPPORT_PATH = Pathname.new(File.expand_path("../support", __FILE__)) -ENV["DASSETS_TEST_MODE"] = "yes" +ENV["DASSETS_TEST_MODE"] = "yes" require "dassets" @dumb_engine = Class.new(Dassets::Engine) do - def ext(in_ext); ""; end - def compile(input); "#{input}\nDUMB"; end + def ext(_in_ext) + "" + end + + def compile(input) + "#{input}\nDUMB" + end end @useless_engine = Class.new(Dassets::Engine) do - def ext(in_ext); "no-use"; end - def compile(input); "#{input}\nUSELESS"; end + def ext(_in_ext) + "no-use" + end + + def compile(input) + "#{input}\nUSELESS" + end end Dassets.configure do |c| c.source TEST_SUPPORT_PATH.join("app/assets") do |s| s.engine "dumb", @dumb_engine