Sha256: 7d93d6f37fd835c297e3aafe288e69cce35d716869e5da370dfd5654516a25c8
Contents?: true
Size: 277 Bytes
Versions: 2
Compression:
Stored size: 277 Bytes
Contents
require 'spec_helper' class Foot include Id::Model end describe Id::EtaExpansion do it 'eta expands an id model class into its constructor' do feet = [{},{},{}].map(&Foot) expect(feet).to have(3).items feet.each { |foot| expect(foot).to be_a Foot } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
id-0.1.1 | spec/lib/id/eta_expansion_spec.rb |
id-0.1 | spec/lib/id/eta_expansion_spec.rb |