Sha256: 4823aed8b0c3b84c87a9fcbfd2a7f36fb5ffbf6b7c5ebc29c24113901feb8193
Contents?: true
Size: 475 Bytes
Versions: 3
Compression:
Stored size: 475 Bytes
Contents
require 'spec_helper' describe Yema::Rule::StrongType, 'valid options' do subject { described_class.new(:foo, options) } it_behaves_like "valid options", {type: String} it_behaves_like "valid options", {type: String, strict: :high} it_behaves_like "valid options", {type: String, strict: :allow_nil} it_behaves_like "invalid options", {} it_behaves_like "invalid options", {strict: :else} it_behaves_like "invalid options", {type: String, strict: :else} end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yema-0.0.3 | spec/unit/rule/strong_type/valid_options_spec.rb |
yema-0.0.2 | spec/unit/rule/strong_type/valid_options_spec.rb |
yema-0.0.1 | spec/unit/rule/strong_type/valid_options_spec.rb |