mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
enforce coding convention
replaced every `and` by `&&` and every `or` by `||`
This commit is contained in:
parent
f544e1d4f7
commit
239cbd2d58
39 changed files with 75 additions and 76 deletions
|
@ -28,7 +28,7 @@ describe Jobs do
|
|||
|
||||
it "should enqueue with the correct database id when the current_site_id option is given" do
|
||||
Sidekiq::Client.expects(:enqueue).with do |arg1, arg2|
|
||||
arg2[:current_site_id] == 'test_db' and arg2[:sync_exec].nil?
|
||||
arg2[:current_site_id] == 'test_db' && arg2[:sync_exec].nil?
|
||||
end
|
||||
Jobs.enqueue(:process_post, post_id: 1, current_site_id: 'test_db')
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue