Sha256: d3d3cd671f6b3d27d8cf59b6b699db88e5434f2432c272e8dced527134a84812
Contents?: true
Size: 476 Bytes
Versions: 3
Compression:
Stored size: 476 Bytes
Contents
require 'spec_helper' describe Yema::Rule::Inclusion, 'valid options' do subject { described_class.new(:foo, options) } it_behaves_like "valid options", {within: [3, 4]} it_behaves_like "valid options", {within: 3..4} it_behaves_like "invalid options", {} it_behaves_like "invalid options", {within: '3'} it_behaves_like "invalid options", {within: 3.2} it_behaves_like "invalid options", {within: false} it_behaves_like "invalid options", {within: 3} end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yema-0.0.3 | spec/unit/rule/inclusion/valid_options_spec.rb |
yema-0.0.2 | spec/unit/rule/inclusion/valid_options_spec.rb |
yema-0.0.1 | spec/unit/rule/inclusion/valid_options_spec.rb |