Sha256: 01564f1d7df416811b5f999f0c2cedb84c2b0009c3dfa651e60f0ec998a3d0f3
Contents?: true
Size: 707 Bytes
Versions: 2
Compression:
Stored size: 707 Bytes
Contents
require 'spec_helper' require 'genomer-plugin-validate/validator/uppercase_name' describe GenomerPluginValidate::Validator::UppercaseName do subject{ described_class } describe "where there are no annotations" do it{ should return_no_errors_for [] } end describe "where there is an annotations with a lowercase name" do it{ should return_no_errors_for [annotation(:attributes => {'Name' => 'something'})]} end describe "where there two annotations with an uppercase name" do attns = [annotation(:attributes => {'Name' => 'Something', 'ID' => 1})] errors = ["Illegal capitalised Name attribute 'Something' for '1'"] it{ should return_errors_for attns, errors} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
genomer-plugin-validate-0.0.2 | spec/genomer-plugin-validate/validator/uppercase_name_spec.rb |
genomer-plugin-validate-0.0.1 | spec/genomer-plugin-validate/validator/uppercase_name_spec.rb |