mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Better tests
This commit is contained in:
committed by
Rob Harrington
parent
a6f2ee1367
commit
4f0b20e8ad
@@ -82,7 +82,7 @@ feature "Authentication", js: true, retry: 3 do
|
||||
click_signup_button
|
||||
page.should have_content "Welcome! You have signed up successfully"
|
||||
end.to enqueue_job Delayed::PerformableMethod
|
||||
Delayed::Job.last.payload_object.method_name.should == :send_on_create_confirmation_instructions_without_delay
|
||||
expect(Delayed::Job.last.payload_object.method_name).to eq(:send_on_create_confirmation_instructions_without_delay)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ describe Spree.user_class do
|
||||
expect do
|
||||
create(:user, confirmed_at: nil)
|
||||
end.to enqueue_job Delayed::PerformableMethod
|
||||
Delayed::Job.last.payload_object.method_name.should == :send_on_create_confirmation_instructions_without_delay
|
||||
expect(Delayed::Job.last.payload_object.method_name).to eq(:send_on_create_confirmation_instructions_without_delay)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user