mallet 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/lib/mallet.rb +2 -0
- data/lib/mallet/mail_generation.rb +8 -0
- data/lib/mallet/version.rb +1 -1
- data/spec/lib/mallet/mail_spec.rb +21 -0
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/lib/mallet.rb
CHANGED
data/lib/mallet/version.rb
CHANGED
@@ -39,6 +39,27 @@ describe Mallet::Mail do
|
|
39
39
|
|
40
40
|
end
|
41
41
|
|
42
|
+
context "creating a mallet mail" do
|
43
|
+
|
44
|
+
it "should allow a definition to be specified" do
|
45
|
+
Mallet::DEFINITIONS['audit'] = {
|
46
|
+
'mailer' => 'ActionMailer::Base',
|
47
|
+
'method' => 'welcome'
|
48
|
+
}
|
49
|
+
|
50
|
+
job = @job
|
51
|
+
|
52
|
+
@mail = Mallet::mail do
|
53
|
+
to job
|
54
|
+
definition 'audit'
|
55
|
+
end
|
56
|
+
|
57
|
+
@mail.mailer_class.should == 'ActionMailer::Base'
|
58
|
+
@mail.mailer_method.should == 'welcome'
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
62
|
+
|
42
63
|
context "on delivery" do
|
43
64
|
|
44
65
|
before(:each) do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mallet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-03-
|
13
|
+
date: 2013-03-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|