Skip to content

Commit

Permalink
fix: Include spec path as relitive to engine-adapter
Browse files Browse the repository at this point in the history
Closes #1427
  • Loading branch information
nschonni committed Jul 17, 2019
1 parent 3f45fb6 commit 4800f31
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 4800f31

Please sign in to comment.