Sha256: d69c726dc3d092c0bc303896cd4250c9af82175aa61361370f94a0d2555187d6
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 Bytes
Contents
require 'spec_helper' module Domain describe Reuse, "new" do it 'returns an instance when correct reused instance' do List.new([1, 2, 3]).should be_a(List) end it 'returns an instance when correct reused instance and valid predicate' do Tuple.new(:foo => "bar").should be_a(Tuple) end it 'raises an ArgumentError when not correct reused instance' do lambda{ List.new("foo") }.should raise_error(ArgumentError) end it 'raises an ArgumentError when the predicate is not satisfied' do lambda{ Tuple.new("foo" => :bar) }.should raise_error(ArgumentError) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
domain-1.0.0.rc1 | spec/factory/reuse_domain/test_new.rb |