Skip to content

Commit

Permalink
Merge pull request sidekiq#2477 from davydovanton/fix-typos
Browse files Browse the repository at this point in the history
Fix typo in cli test
  • Loading branch information
seuros committed Aug 6, 2015
2 parents 1486afe + 9318208 commit 3948674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_cli.rb
Expand Up @@ -128,15 +128,15 @@ class TestCli < Sidekiq::Test

it 'appends messages to a logfile' do
File.open(@tmp_log_path, 'w') do |f|
f.puts 'already existant log message'
f.puts 'already existent log message'
end

@cli.parse(['sidekiq', '-L', @tmp_log_path, '-r', './test/fake_env.rb'])

Sidekiq.logger.info('test message')

log_file_content = File.read(@tmp_log_path)
assert_match(/already existant/, log_file_content, "didn't include the old message")
assert_match(/already existent/, log_file_content, "didn't include the old message")
assert_match(/test message/, log_file_content, "didn't include the new message")
end
end
Expand Down

0 comments on commit 3948674

Please sign in to comment.