diff --git a/spec/lib/flavor_gem/util_spec.rb b/spec/lib/flavor_gem/util_spec.rb index 19511b1..8a96b37 100644 --- a/spec/lib/flavor_gem/util_spec.rb +++ b/spec/lib/flavor_gem/util_spec.rb @@ -18,7 +18,8 @@ class Dummy < Thor describe "#template_file_name" do it "returns the right path" do result = subject.template_file_name("Rakefile") - expect(result).to eq("c:/gabriel/flavor_gem/template/Rakefile") + expected = File.expand_path("../../../../template/Rakefile", __FILE__) + expect(result).to eq(expected) end end describe "#normalize_code" do