spec/macros4cuke/application_spec.rb in macros4cuke-0.5.03 vs spec/macros4cuke/application_spec.rb in macros4cuke-0.5.06

- old
+ new

@@ -73,11 +73,11 @@ file_path = './test_dir/features/support' file_name = 'use_macros4cuke.rb' subject.run!(%w(--setup ./test_dir)) - expect(File.exist?(file_path + '/' + file_name)).to be_true + expect(File.exist?(file_path + '/' + file_name)).to be true File.delete(file_path + '/' + file_name) delete_dirs(file_path) end @@ -85,17 +85,17 @@ make_dirs file_path = '/test_dir/features/support' file_name = 'use_macros4cuke.rb' args = %w(--setup ./test_dir) - my_dir = File.dirname(__FILE__) + mydir = File.dirname(__FILE__) expect { subject.run!(args) }.not_to raise_error hijack_stderr err_msg = <<-MSG_END Error in command-line: -The file '#{my_dir}/test_dir/features/support/use_macros4cuke.rb' already exists. +The file '#{mydir}/test_dir/features/support/use_macros4cuke.rb' already exists. MSG_END expect { subject.run!(args) }.to raise_error(SystemExit) # Error message text is displayed