Sha256: 9ea83c94a8f9ed4cbe1b4c3e57cd6da2c28a7ab92516cdb8e54effdf4f7b987e
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
require 'test_helper' module Kublog class PostTest < ActiveSupport::TestCase test "not valid without a title" do assert !Factory.build(:post, :title => nil).valid? end test "not valid without a body" do assert !Factory.build(:post, :body => nil).valid? end test "not valid without a user" do assert !Factory.build(:post, :user_id => nil).valid? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kublog-0.0.1.1 | test/unit/kublog/post_test.rb |