Sha256: 8e74bb9032b45d7bbbe76f2abcbb8f8e7974744d4d9417c5dd2eb76d9c6cc505
Contents?: true
Size: 460 Bytes
Versions: 23
Compression:
Stored size: 460 Bytes
Contents
require "spec_helper" module Alchemy describe PasswordsController do let(:user) { FactoryGirl.create(:admin_user) } describe '#post' do it "should send email with reset password instructions" do ActionMailer::Base.deliveries = [] @request.env["devise.mapping"] = Devise.mappings[:user] post :create, :user => {:email => user.email} ActionMailer::Base.deliveries.should_not be_empty end end end end
Version data entries
23 entries across 23 versions & 1 rubygems