Commit 1e7fa8d99b52d89571b8e9581746561d00c383d5

Authored by Dmitriy Zaporozhets
1 parent c9020ae5

Fix syntax error

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing 2 changed files with 2 additions and 4 deletions   Show diff stats
lib/tasks/spec.rake
... ... @@ -40,7 +40,6 @@ end
40 40  
41 41 def run_commands(cmds)
42 42 cmds.each do |cmd|
43   - system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) ||
44   - raise "#{cmd} failed!"
  43 + system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) or raise("#{cmd} failed!")
45 44 end
46 45 end
... ...
lib/tasks/spinach.rake
... ... @@ -8,7 +8,6 @@ task :spinach do
8 8 ]
9 9  
10 10 cmds.each do |cmd|
11   - system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) ||
12   - raise "#{cmd} failed!"
  11 + system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) or raise("#{cmd} failed!")
13 12 end
14 13 end
... ...