Sha256: c1007626d8e0288c170ce4091ed32a69bfae615a953e809f67588d1cfc95d9ec
Contents?: true
Size: 511 Bytes
Versions: 5
Compression:
Stored size: 511 Bytes
Contents
RSpec.shared_context 'users and tasks' do include_context 'setup' let(:users_relation) do Class.new(ROM::HTTP::Relation) do dataset :users def by_id(id) with_params(id: id) end end end let(:tasks_relation) do Class.new(ROM::HTTP::Relation) do dataset :tasks def by_id(id) with_params(id: id) end end end before do configuration.register_relation(users_relation) configuration.register_relation(tasks_relation) end end
Version data entries
5 entries across 5 versions & 1 rubygems