spec/mailee-api-ar.rb in mailee-0.3.0 vs spec/mailee-api-ar.rb in mailee-0.4.2
- old
+ new
@@ -4,10 +4,15 @@
before(:each) do
Mailee::Config.site = "http://api.bdb28c0a0a4a3.softa.server:3000"
@moment = Time.now.strftime('%Y%m%d%H%M%S')
end
-
+
+ it "should respond to sync_with_mailee" do
+ ActiveRecord::Base.should respond_to(:sync_with_mailee)
+ end
+
+
it "should create if news is checked" do
foo = Foo.create :name => "rest_test_foo_#{@moment}", :email => "rest_test_foo_#{@moment}@test.com", :news => true
found = Mailee::Contact.find_by_email("rest_test_foo_#{@moment}@test.com")
found.internal_id.to_i.should be foo.id
# ==
\ No newline at end of file