Sha256: a4a2e61849e036c0078759777f736e9fd8aa5265ab624b5af5a38fa357c1bcea
Contents?: true
Size: 404 Bytes
Versions: 4
Compression:
Stored size: 404 Bytes
Contents
require 'spec_helper' module Alf describe Heading, "project" do let(:heading){ Heading[:id => Integer, :name => String] } context 'without allbut' do subject{ heading.project([:id]) } it { should eq(Heading[:id => Integer]) } end context 'with allbut' do subject{ heading.project([:id], true) } it { should eq(Heading[:name => String]) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems