autowatchr 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/autowatchr.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{autowatchr}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeremy Stephens"]
data/lib/autowatchr.rb CHANGED
@@ -117,7 +117,7 @@ class Autowatchr
117
117
 
118
118
  if !passing.empty?
119
119
  predicate = if passing.length > 1
120
- "-e \"%w[#{passing.join(" ")}].each { |f| require f }\""
120
+ "-e \"%w[#{passing.join(" ")}].each do |f| require f end\""
121
121
  else
122
122
  passing[0]
123
123
  end
@@ -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 { |f| require f }\""
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 { |f| require f }"!
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 { |f| require f }"!
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autowatchr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Stephens