Skip to content

Commit

Permalink
Fix: Rename datapath helper to compiler_datapath for compiler specs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored and Serdar Dogruyol committed Jul 2, 2018
1 parent b8d64a7 commit cb41f96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/compiler/compiler_spec.cr
Expand Up @@ -4,7 +4,7 @@ require "./spec_helper"
describe "Compiler" do
it "compiles a file" do
with_tempfile "compiler_spec_output" do |path|
Crystal::Command.run ["build", datapath("compiler_sample"), "-o", path]
Crystal::Command.run ["build", compiler_datapath("compiler_sample"), "-o", path]

File.exists?(path).should be_true

Expand All @@ -13,7 +13,7 @@ describe "Compiler" do
end

it "runs subcommand in preference to a filename " do
Dir.cd datapath do
Dir.cd compiler_datapath do
with_tempfile "compiler_spec_output" do |path|
Crystal::Command.run ["build", "compiler_sample", "-o", path]

Expand Down
2 changes: 1 addition & 1 deletion spec/compiler/spec_helper.cr
@@ -1,6 +1,6 @@
require "../spec_helper"
require "../support/tempfile"

def datapath(*components)
def compiler_datapath(*components)
File.join("spec", "compiler", "data", *components)
end

0 comments on commit cb41f96

Please sign in to comment.