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

- old
+ new

@@ -13,11 +13,11 @@ end describe '.view' do context 'using short syntax' do before do - setup.relation(:users) do + configuration.relation(:users) do view(:by_id, [:name]) do |name| where(name: name).select(:name) end end end @@ -25,11 +25,11 @@ include_context 'valid view' end context 'with multi-block syntax' do before do - setup.relation(:users) do + configuration.relation(:users) do view(:by_id) do header [:name] relation do |name| where(name: name).select(:name) @@ -42,10 +42,10 @@ end context 'with multi-block when first block has args' do it 'raises error' do expect { - setup.relation(:users) do + configuration.relation(:users) do view(:by_id) { |args| } end }.to raise_error(ArgumentError) end end