Skip to content

Commit

Permalink
Fix bin/18n-tasks tests on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Oct 28, 2015
1 parent f15d762 commit 8a7270b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/i18n_tasks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
# These bin/i18n-tasks tests are executed in parallel for performance
env = {'I18N_TASKS_BIN_SIMPLECOV_COVERAGE' => '1'}
in_test_app_dir do
clean_coverage_logging = -> s { s.sub /(?:\n^|\A)(?:Coverage = |.*Reporting coverage).*(?:$\n|\z)/i, '' }
[
proc {
out, err, status = Open3.capture3(env, 'bundle exec ../../bin/i18n-tasks')
out, err = clean_coverage_logging[out], clean_coverage_logging[err]
expect(status).to be_success
expect(out).to be_empty
expect(err).to start_with('Usage: i18n-tasks [command] [options]')
Expand All @@ -25,6 +27,7 @@
},
proc {
out, err, status = Open3.capture3(env, 'bundle exec ../../bin/i18n-tasks --version')
out, err = clean_coverage_logging[out], clean_coverage_logging[err]
expect(status).to be_success
expect(err).to be_empty
expect(out.chomp).to eq I18n::Tasks::VERSION
Expand Down

0 comments on commit 8a7270b

Please sign in to comment.