spec/shared/users_and_tasks.rb in rom-http-0.5.0 vs spec/shared/users_and_tasks.rb in rom-http-0.6.0.rc1

- old
+ new

@@ -1,18 +1,22 @@ RSpec.shared_context 'users and tasks' do include_context 'setup' let(:users_relation) do Class.new(ROM::HTTP::Relation) do - dataset :users + schema(:users) do + attribute :id, ROM::Types::Int + end def by_id(id) with_params(id: id) end end end let(:tasks_relation) do Class.new(ROM::HTTP::Relation) do - dataset :tasks + schema(:tasks) do + attribute :id, ROM::Types::Int + end def by_id(id) with_params(id: id) end end