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

Version Path
alchemy_cms-2.8.3 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.7.5 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.6.3 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.7.4 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.8.2 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.8.1 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.7.3 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.7.2 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.7.1 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.7.0 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.6.2.1 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.6.2 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.6.1 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.6.0 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.6.0.rc5 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.5.3.1 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.5.3 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.5.2.2 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.5.2.1 spec/controllers/passwords_controller_spec.rb
alchemy_cms-2.5.2 spec/controllers/passwords_controller_spec.rb