test/scout_test.rb in scout-5.7.0 vs test/scout_test.rb in scout-5.7.1
- old
+ new
@@ -646,10 +646,11 @@
def test_generate_non_rvm_bundler_cron_command
Scout::Environment.stubs(:rvm?).returns(false)
Scout::Environment.stubs(:bundler?).returns(false)
install = Scout::Command::Install.new({},{})
cron_command = install.send(:cron_command, @client.key)
- assert_equal cron_command, "#{`which scout`.strip} #{@client.key}"
+ # in the actual implementation, this will match "scout key"
+ assert_match /scout_test.rb key$/, cron_command
end
######################
### Helper Methods ###