Skip to content

Commit ddc0f1d

Browse files
authored
Merge pull request #1438 from nschonni/fix-spec-path-include
fix: Include spec path as relitive to engine-adapter
2 parents 77fa74a + 4800f31 commit ddc0f1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sass_spec/engine_adapter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def compile(sass_filename, precision)
4444
dirname, basename = File.split(sass_filename)
4545
result = capture3_with_timeout(
4646
command, "--precision", precision.to_s, "-t", "expanded",
47-
"-I", File.absolute_path("spec"), *@args&.split(/\s+/), basename,
47+
"-I", File.expand_path("../../../spec", __FILE__), *@args&.split(/\s+/), basename,
4848
binmode: true, timeout: @timeout, chdir: dirname)
4949

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

0 commit comments

Comments
 (0)