spec/low_level_spec.rb in newslettre-0.2.0 vs spec/low_level_spec.rb in newslettre-0.2.1
- old
+ new
@@ -183,9 +183,15 @@
after :each do
@identity.delete "test-identity"
end
+ it "should have a list of objects" do
+ @newsletter.list.each do |l|
+ l.should be_kind_of(Newslettre::Letter::Object)
+ end
+ end
+
it "should create an HTML mail" do
data = NEWSLETTRE_CONFIG['letter']
data["html"] = File.read File.dirname(__FILE__) + "/fixtures/test-letter.html"
@newsletter.add 'test-html', data