Sha256: 3bfc723ae02e76084ac6aad19930090c6774f5c307c97c040dbf1443538c270b
Contents?: true
Size: 463 Bytes
Versions: 1
Compression:
Stored size: 463 Bytes
Contents
require "spec_helper" describe Signable::Model::Column do it_behaves_like 'Prefix' describe "#required?" do subject { column.required? } context "when presence is true" do let(:column) { Signable::Model::Column.new('name', presence: true) } it { should be true } end context "when presence is false" do let(:column) { Signable::Model::Column.new('name', presence: false) } it { should be false } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
signable-0.0.1 | spec/signable/model/column_spec.rb |