Sha256: 30ae2b554d3f5a7912cd4feee8ad05d84fcbccd7a59dace177acfe82225cfa93
Contents?: true
Size: 462 Bytes
Versions: 3
Compression:
Stored size: 462 Bytes
Contents
require 'spec_helper' describe NillyVanilly do describe "model with one column" do it "stores class methods" do Post.nillify_attributes.should == [:title] end it "stores nil for empty string" do post = Post.create! :title => "" post.title.should be_nil end end describe "model with two columns" do it "stores class methods" do Comment.nillify_attributes.should == [:author, :author_email] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nilly_vanilly-0.3.0 | spec/nilly_vanilly_spec.rb |
nilly_vanilly-0.2.0 | spec/nilly_vanilly_spec.rb |
nilly_vanilly-0.1.0 | spec/nilly_vanilly_spec.rb |