sidekiq with green tests
This commit is contained in:
parent
71bd956866
commit
9773ccc451
14 changed files with 48 additions and 68 deletions
|
@ -41,7 +41,7 @@ describe "Admin::Users" do
|
|||
end
|
||||
|
||||
it "should call send mail" do
|
||||
Notify.should_receive(:new_user_email).and_return(stub(deliver: true))
|
||||
Notify.should_receive(:new_user_email)
|
||||
|
||||
User.observers.enable :user_observer do
|
||||
click_button "Save"
|
||||
|
@ -50,9 +50,7 @@ describe "Admin::Users" do
|
|||
|
||||
it "should send valid email to user with email & password" do
|
||||
User.observers.enable :user_observer do
|
||||
with_resque do
|
||||
click_button "Save"
|
||||
end
|
||||
click_button "Save"
|
||||
user = User.last
|
||||
email = ActionMailer::Base.deliveries.last
|
||||
email.subject.should have_content("Account was created")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue