Sha256: 990937c28d1dc54ad41e7fbf077e63fe06678333ba3e94580fd1e13e522f9368
Contents?: true
Size: 613 Bytes
Versions: 3
Compression:
Stored size: 613 Bytes
Contents
require 'spec_helper' module Tim describe TemplateValidator do it "should not add errors on template with valid xml" do template = FactoryGirl.build(:template) TemplateValidator.new({}).validate(template) template.errors.size.should == 0 end it "should add errors to template with invalid xml" do template = FactoryGirl.build(:template, :xml => "<invalid_template> </invalid_template>") TemplateValidator.new({}).validate(template) template.errors.size.should > 0 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tim-0.1.2 | spec/validators/template_validator_spec.rb |
tim-0.1.1 | spec/validators/template_validator_spec.rb |
tim-0.0.1 | spec/validators/template_validator_spec.rb |