Sha256: c2cb12bf9120cfe4013c44cc4588bace36441f67ac56543b18363f863b42f33d
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 Bytes
Contents
require 'spec_helper' describe Maily::Mailer do it "should load mailers" do Maily::Mailer.all.size.should == 1 end it "should build emails" do mailer = Maily::Mailer.find('notifier') mailer.emails.size.should == 3 end it "should find mailers by name" do Maily::Mailer.find('notifier').name.should == 'notifier' end it "should find emails by name" do mailer = Maily::Mailer.find('notifier') mailer.find_email('welcome').name.should == 'welcome' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maily-0.3.1 | spec/mailer_spec.rb |