Sha256: d88d5ff5507646e2402f5a565e2ddca92e97d28f82934cfec12bc4455ca603eb
Contents?: true
Size: 516 Bytes
Versions: 3
Compression:
Stored size: 516 Bytes
Contents
require 'spec_helper' describe 'Association errors' do include_context 'users and tasks' describe 'accessing an undefined association' do specify do configuration.relation(:users) do use :assoc_macros def with_undefined association_join(:undefined) end end expect { container.relations.users.with_undefined }.to raise_error ROM::SQL::NoAssociationError, 'Association :undefined has not been defined for relation :users' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rom-sql-0.7.0 | spec/unit/association_errors_spec.rb |
rom-sql-0.7.0.rc1 | spec/unit/association_errors_spec.rb |
rom-sql-0.7.0.beta1 | spec/unit/association_errors_spec.rb |