Skip to content
Browse files

RSPEC_EXECUTABLE (better name)

  • Loading branch information...
1 parent 96fa119 commit 67a5d26483ff0e5a597636003f8472d4bb7087df @dchelimsky dchelimsky committed
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/autotest/rspec2.rb
  2. +1 −1 spec/autotest/rspec_spec.rb
View
4 lib/autotest/rspec2.rb
@@ -5,7 +5,7 @@ class RSpecCommandError < StandardError; end
class Autotest::Rspec2 < Autotest
- SPEC_PROGRAM = File.expand_path('../../../exe/rspec', __FILE__)
+ RSPEC_EXECUTABLE = File.expand_path('../../../exe/rspec', __FILE__)
def initialize
super()
@@ -45,7 +45,7 @@ def consolidate_failures(failed)
# Overrides Autotest's implementation to generate the rspec command to run
def make_test_cmd(files_to_test)
files_to_test.empty? ? '' :
- "#{prefix}#{ruby}#{suffix} -S #{SPEC_PROGRAM} --tty #{normalize(files_to_test).keys.flatten.map { |f| "'#{f}'"}.join(' ')}"
+ "#{prefix}#{ruby}#{suffix} -S #{RSPEC_EXECUTABLE} --tty #{normalize(files_to_test).keys.flatten.map { |f| "'#{f}'"}.join(' ')}"
end
# Generates a map of filenames to Arrays for Autotest
View
2 spec/autotest/rspec_spec.rb
@@ -50,7 +50,7 @@
end
end
- it "gives '--tty' to #{Autotest::Rspec2::SPEC_PROGRAM}, not '--autotest'" do
+ it "gives '--tty' to #{Autotest::Rspec2::RSPEC_EXECUTABLE}, not '--autotest'" do
cmd = rspec_autotest.make_test_cmd(@files_to_test)
cmd.should match(' --tty ')
cmd.should_not match(' --autotest ')

0 comments on commit 67a5d26

Please sign in to comment.
Something went wrong with that request. Please try again.