Sha256: a0d63162f113ac1e5721b22cdf00fba330fa9bdaf4db5110028431553de589ee
Contents?: true
Size: 276 Bytes
Versions: 2
Compression:
Stored size: 276 Bytes
Contents
require 'spec_helper' class Mike include Id::Model field :cat field :dog, optional: true def catdog dog.value_or cat end end describe "Foobar" do let (:mike) { Mike.new(cat: 'pooface') } it 'returns cat' do mike.catdog.should eq 'pooface' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
id-0.0.9 | spec/lib/mike_spec.rb |
id-0.0.8 | spec/lib/mike_spec.rb |