Commit 1e7fa8d99b52d89571b8e9581746561d00c383d5
1 parent
c9020ae5
Exists in
spb-stable
and in
2 other branches
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,7 +40,6 @@ end | ||
| 40 | 40 | ||
| 41 | def run_commands(cmds) | 41 | def run_commands(cmds) |
| 42 | cmds.each do |cmd| | 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 | end | 44 | end |
| 46 | end | 45 | end |
lib/tasks/spinach.rake
| @@ -8,7 +8,6 @@ task :spinach do | @@ -8,7 +8,6 @@ task :spinach do | ||
| 8 | ] | 8 | ] |
| 9 | 9 | ||
| 10 | cmds.each do |cmd| | 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 | end | 12 | end |
| 14 | end | 13 | end |