Sha256: d3a3a94cd4771ec8753f1cdfd6c13961d5a895c60e77b7e72e918007672549e1
Contents?: true
Size: 853 Bytes
Versions: 2
Compression:
Stored size: 853 Bytes
Contents
require 'test/unit' require 'rubygems' RAILS_ENV = ENV["RAILS_ENV"] = "test" require 'active_support' require 'active_support/test_case' require 'action_mailer' ActionMailer::Base.delivery_method = :test # Load respond_to before defining ApplicationController require File.dirname(__FILE__) + '/../lib/simple_form.rb' class ContactForm < SimpleForm recipients 'my.email@my.domain.com' attribute :name, :validate => true attribute :email, :validate => /[^@]+@[^\.]+\.[\w\.\-]+/ attribute :nickname, :captcha => true attributes :tellphone, :message end class AdvancedForm < ContactForm recipients [ 'my.first@email.com', 'my.second@email.com' ] subject 'My Advanced Form' sender{|c| %{"#{c.name}" <#{c.email}>} } headers 'return-path' => 'mypath' end class NullRecipient < SimpleForm sender 'my.email@my.domain.com' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
josevalim-simple_form-0.1.1 | test/test_helper.rb |
josevalim-simple_form-0.1 | test/test_helper.rb |