spec/unit/sql/relation_spec.rb in rom-repository-0.0.2 vs spec/unit/sql/relation_spec.rb in rom-repository-0.1.0

- old
+ new

@@ -38,7 +38,17 @@ end end include_context 'valid view' end + + context 'with multi-block when first block has args' do + it 'raises error' do + expect { + setup.relation(:users) do + view(:by_id) { |args| } + end + }.to raise_error(ArgumentError) + end + end end end