Skip to content

Commit

Permalink
Merge pull request #1438 from nschonni/fix-spec-path-include
Browse files Browse the repository at this point in the history
fix: Include spec path as relitive to engine-adapter
  • Loading branch information
nschonni authored Jul 17, 2019
2 parents 77fa74a + 4800f31 commit ddc0f1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sass_spec/engine_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def compile(sass_filename, precision)
dirname, basename = File.split(sass_filename)
result = capture3_with_timeout(
command, "--precision", precision.to_s, "-t", "expanded",
"-I", File.absolute_path("spec"), *@args&.split(/\s+/), basename,
"-I", File.expand_path("../../../spec", __FILE__), *@args&.split(/\s+/), basename,
binmode: true, timeout: @timeout, chdir: dirname)

if result[:timeout]
Expand Down Expand Up @@ -109,7 +109,7 @@ def describe
def compile(sass_filename, precision)
dirname, basename = File.split(sass_filename)
@stdin.puts "!cd #{File.absolute_path(dirname)}"
@stdin.puts("--no-color --no-unicode -I #{File.absolute_path("spec")} " +
@stdin.puts("--no-color --no-unicode -I #{File.expand_path("../../../spec", __FILE__)} " +
"#{@args} #{basename}")
[next_chunk(@stdout), next_chunk(@stderr), next_chunk(@stdout).to_i]
end
Expand Down

0 comments on commit ddc0f1d

Please sign in to comment.