Sha256: 6b488bfca15dab56a958e814580107938956e76d23ca39e231a94da41d566334
Contents?: true
Size: 401 Bytes
Versions: 9
Compression:
Stored size: 401 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class PageTest < Test::Unit::TestCase fixtures :contents def setup @page = Page.find(9) end def test_validate a = Page.new a.name = 'a-new-name' a.title = 'A Fabulous Page yo!' a.body = 'x' assert a.save b = Page.new b.name = a.name b.body = a.body b.title = a.title assert !b.save end end
Version data entries
9 entries across 9 versions & 1 rubygems