Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed --autotest to --tty.

- Closes #235.
  • Loading branch information...
commit 5ac0f846f60d16f2ee38b6a0e5c5f206405c1bfd 1 parent 4cb4c22
@yoshuki yoshuki authored dchelimsky committed
Showing with 7 additions and 1 deletion.
  1. +1 −1  lib/autotest/rspec2.rb
  2. +6 −0 spec/autotest/rspec_spec.rb
View
2  lib/autotest/rspec2.rb
@@ -41,7 +41,7 @@ def consolidate_failures(failed)
def make_test_cmd(files_to_test)
files_to_test.empty? ? '' :
- "#{bundle_exec}#{ruby} #{require_rubygems}-S #{SPEC_PROGRAM} --autotest #{normalize(files_to_test).keys.flatten.map { |f| "'#{f}'"}.join(' ')}"
+ "#{bundle_exec}#{ruby} #{require_rubygems}-S #{SPEC_PROGRAM} --tty #{normalize(files_to_test).keys.flatten.map { |f| "'#{f}'"}.join(' ')}"
end
def bundle_exec
View
6 spec/autotest/rspec_spec.rb
@@ -39,6 +39,12 @@
cmd.should match(/'#{File.expand_path(file_to_test)}'/)
end
end
+
+ it "gives '--tty' to #{Autotest::Rspec2::SPEC_PROGRAM}, not '--autotest'" do
+ cmd = rspec_autotest.make_test_cmd(@files_to_test)
+ cmd.should match(' --tty ')
+ cmd.should_not match(' --autotest ')
+ end
end
describe "mappings" do
Please sign in to comment.
Something went wrong with that request. Please try again.