features/steps/cli.rb in newgem-1.2.2 vs features/steps/cli.rb in newgem-1.2.3
- old
+ new
@@ -51,30 +51,30 @@
When %r{^newgem is executed for project '(.*)' with no options$} do |project_name|
@newgem_cmd = newgem_cmd
setup_active_project_folder project_name
in_tmp_folder do
- @stdout = "newgem.out"
+ @stdout = File.expand_path("newgem.out")
system "ruby #{@newgem_cmd} #{project_name} > #{@stdout}"
force_local_lib_override
end
end
When %r{^newgem is executed for project '(.*)' with options '(.*)'$} do |project_name, arguments|
@newgem_cmd = newgem_cmd
setup_active_project_folder project_name
in_tmp_folder do
- @stdout = "newgem.out"
+ @stdout = File.expand_path("newgem.out")
system "ruby #{@newgem_cmd} #{arguments} #{project_name} > #{@stdout}"
force_local_lib_override
end
end
When /^newgem is executed only with options '(.*)'$/ do |arguments|
@newgem_cmd = newgem_cmd
in_tmp_folder do
- @stdout = "newgem.out"
+ @stdout = File.expand_path("newgem.out")
system "ruby #{@newgem_cmd} #{arguments} > #{@stdout}"
end
end
@@ -96,8 +96,8 @@
File.exists?(file).should(is == 'is' ? be_true : be_false)
end
end
Then /^shows version number$/ do
- stdout = File.read(File.join(@tmp_root, @stdout))
+ stdout = File.read(@stdout)
stdout.should =~ /#{Newgem::VERSION}/
end