Sha256: 3a118736744b88b4e40d37aa566050e3e31d0dc1663cb9517f43034bc1b914ca

Contents?: true

Size: 409 Bytes

Versions: 1

Compression:

Stored size: 409 Bytes

Contents

require 'spec_helper'

describe "when a new user is added" do
  before(:each) do
    user = FactoryGirl.create(:user)
  end

  it "a registration email should be sent" do
    ActionMailer::Base.deliveries.size.should == 1
  end

  it "email should have 'Please activate' etc in subject" do
    ActionMailer::Base.deliveries.last.subject.should == "Test database - Please activate your new account"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authengine-0.0.2 spec/models/user_spec.rb