Sha256: 5496478ccd0b9202ea92817a88a4cada98956931f8871ecd66aaa8dd5bb3ccd1
Contents?: true
Size: 415 Bytes
Versions: 3
Compression:
Stored size: 415 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Tagging do before(:each) do @tagging = Tagging.new end it "should not be valid with a invalid tag" do @tagging.taggable = TaggableModel.create(:name => "Bob Jones") @tagging.tag = Tag.new(:name => "") @tagging.context = "tags" @tagging.should_not be_valid @tagging.errors.on(:tag_id).should == "can't be blank" end end
Version data entries
3 entries across 3 versions & 1 rubygems