Better tests

This commit is contained in:
Pierre de Lacroix
2017-07-17 15:48:59 +02:00
committed by Rob Harrington
parent a6f2ee1367
commit 4f0b20e8ad
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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