Sha256: ad27c3893a9801d697308446d95bb1648c4945fffe5d9deb70c6cb014d3c707f
Contents?: true
Size: 420 Bytes
Versions: 7
Compression:
Stored size: 420 Bytes
Contents
require 'test_helper' module PagesCms class ContactTest < ActiveSupport::TestCase setup do @contact = Contact.new( account_id: 1, name: 'Colin Walker', email: 'cjwalker@sfu.ca', message: 'hello there' ) end test 'valid contact' do assert @contact.valid? end test 'invalid contact' do @contact.email = 'stupid' assert_not @contact.valid? end end end
Version data entries
7 entries across 7 versions & 1 rubygems