Sha256: bc5337d476662e2817946475f88f91f1ca4b26f102039dfee1c56743487e6415
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 Bytes
Contents
RSpec.describe 'Association errors', :postgres do include_context 'users and tasks' describe 'accessing an undefined association' do specify do conf.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rom-sql-0.9.1 | spec/unit/association_errors_spec.rb |
rom-sql-0.9.0 | spec/unit/association_errors_spec.rb |