autowatchr 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/autowatchr.gemspec +1 -1
- data/lib/autowatchr.rb +1 -1
- data/test/test_autowatchr.rb +3 -3
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/autowatchr.gemspec
CHANGED
data/lib/autowatchr.rb
CHANGED
data/test/test_autowatchr.rb
CHANGED
@@ -96,7 +96,7 @@ class TestAutowatchr < Test::Unit::TestCase
|
|
96
96
|
end
|
97
97
|
|
98
98
|
def test_running_multiple_test_files
|
99
|
-
expected_cmd = "/usr/local/bin/ruby -I.:#{@lib_dir}:#{@test_dir} -e \"%w[#{@test_dir}/test_bar.rb #{@test_dir}/test_foo.rb].each
|
99
|
+
expected_cmd = "/usr/local/bin/ruby -I.:#{@lib_dir}:#{@test_dir} -e \"%w[#{@test_dir}/test_bar.rb #{@test_dir}/test_foo.rb].each do |f| require f end\""
|
100
100
|
Autowatchr.any_instance.expects_system_call(expected_cmd, "all")
|
101
101
|
|
102
102
|
silence_stream(STDOUT) do
|
@@ -107,7 +107,7 @@ class TestAutowatchr < Test::Unit::TestCase
|
|
107
107
|
|
108
108
|
def test_runs_all_test_files_on_start
|
109
109
|
files = Dir.glob("#{@test_dir}/**/test_*.rb").join(" ")
|
110
|
-
expected_cmd = %!/usr/local/bin/ruby -I.:#{@lib_dir}:#{@test_dir} -e "%w[#{files}].each
|
110
|
+
expected_cmd = %!/usr/local/bin/ruby -I.:#{@lib_dir}:#{@test_dir} -e "%w[#{files}].each do |f| require f end"!
|
111
111
|
Autowatchr.any_instance.expects_system_call(expected_cmd, "all")
|
112
112
|
|
113
113
|
silence_stream(STDOUT) do
|
@@ -188,7 +188,7 @@ class TestAutowatchr < Test::Unit::TestCase
|
|
188
188
|
aw.expects_system_call(expected_cmd_3, "bar_pass")
|
189
189
|
|
190
190
|
files = Dir.glob("#{@test_dir}/**/test_*.rb").join(" ")
|
191
|
-
expected_cmd_4 = %!/usr/local/bin/ruby -I.:#{@lib_dir}:#{@test_dir} -e "%w[#{files}].each
|
191
|
+
expected_cmd_4 = %!/usr/local/bin/ruby -I.:#{@lib_dir}:#{@test_dir} -e "%w[#{files}].each do |f| require f end"!
|
192
192
|
aw.expects_system_call(expected_cmd_4, "all")
|
193
193
|
|
194
194
|
silence_stream(STDOUT) do
|