Sha256: e94b37cd05d3819f0fc7e55cb8b178d258d5f1ed8f1d8e1a1717cc42a10c9e52
Contents?: true
Size: 405 Bytes
Versions: 5
Compression:
Stored size: 405 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "Validations on ActiveRecord Model annotated with 'has_custom_field_behavior'" do fixtures :posts, :post_attributes it "should execute as normal (validates_presence_of)" do post = Post.create :comment => 'No Intro', :teaser => 'This should fail' post.errors[:intro].should == "can't be blank" end end
Version data entries
5 entries across 5 versions & 1 rubygems