From 1138782336eb8422074dd0baf343d53fc700327e Mon Sep 17 00:00:00 2001 From: Sharon Rosner Date: Tue, 3 Jan 2017 22:19:52 +0100 Subject: [PATCH] Fix transform spec --- spec/transform_spec.rb | 6 +++--- spec/user_files/flattened_include_path.ly | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/transform_spec.rb b/spec/transform_spec.rb index 93fafad..d013340 100644 --- a/spec/transform_spec.rb +++ b/spec/transform_spec.rb @@ -19,9 +19,9 @@ Lyp::Lilypond.current_lilypond_include_path ] } - out = Lyp::Transform.flatten("#{$spec_dir}/user_files/include_path.ly", opts).gsub( - "#{$spec_dir}/user_files/", "" - ).strip_whitespace + out = Lyp::Transform.flatten("#{$spec_dir}/user_files/include_path.ly", opts). + gsub("#{$spec_dir}/", ""). + strip_whitespace expect(out).to eq(IO.read("#{$spec_dir}/user_files/flattened_include_path.ly").strip_whitespace) end end diff --git a/spec/user_files/flattened_include_path.ly b/spec/user_files/flattened_include_path.ly index cf81e0d..c225a57 100644 --- a/spec/user_files/flattened_include_path.ly +++ b/spec/user_files/flattened_include_path.ly @@ -1,5 +1,5 @@ -%%% /Users/sharon/repo/lyp/spec/include_files/mydeutsch.ly -%%% /Users/sharon/repo/lyp/spec/lilypond_setups/tmp/2.19.37/share/lilypond/current/ly/deutsch.ly +%%% include_files/mydeutsch.ly +%%% lilypond_setups/tmp/2.19.37/share/lilypond/current/ly/deutsch.ly %%%% common German names for notes %%%% This file is part of LilyPond, the GNU music typesetter. %%%%