Sha256: 8810ac329ffb276419c7fc13fcf69b784c02fe3ce39f5a73d37772e0879ea758

Contents?: true

Size: 187 Bytes

Versions: 17

Compression:

Stored size: 187 Bytes

Contents

require 'spec_helper'

describe User do
  it 'sends an email after creation' do
    expect {
      create(:user)
    }.to change { ActionMailer::Base.deliveries.length }.by(1)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
effective_email_templates-0.6.1 spec/models/user_spec.rb
effective_email_templates-0.6.0 spec/models/user_spec.rb
effective_email_templates-0.5.1 spec/models/user_spec.rb
effective_email_templates-0.5.0 spec/models/user_spec.rb
effective_email_templates-0.4.6 spec/models/user_spec.rb
effective_email_templates-0.4.5 spec/models/user_spec.rb
effective_email_templates-0.4.4 spec/models/user_spec.rb
effective_email_templates-0.4.3 spec/models/user_spec.rb
effective_email_templates-0.4.2 spec/models/user_spec.rb
effective_email_templates-0.4.1 spec/models/user_spec.rb
effective_email_templates-0.4.0 spec/models/user_spec.rb
effective_email_templates-0.3.5 spec/models/user_spec.rb
effective_email_templates-0.3.4 spec/models/user_spec.rb
effective_email_templates-0.3.3 spec/models/user_spec.rb
effective_email_templates-0.3.1 spec/models/user_spec.rb
effective_email_templates-0.3.0 spec/models/user_spec.rb
effective_email_templates-0.2.8 spec/models/user_spec.rb