Sha256: e937d55102daaa716e043f5c0561e7182aa7800a8fa29ed2e81c357b73ba70e3

Contents?: true

Size: 252 Bytes

Versions: 4

Compression:

Stored size: 252 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation, '#insert' do
  include_context 'Relation'

  let(:user) { model.new(name: 'Piotr') }

  it 'inserts object into relation' do
    expect(relation.insert(user).to_a).to include(user)
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
rom-0.2.0 spec/unit/rom/relation/insert_spec.rb
rom-relation-0.1.2 spec/unit/rom/relation/insert_spec.rb
rom-relation-0.1.1 spec/unit/rom/relation/insert_spec.rb
rom-relation-0.1.0 spec/unit/rom/relation/insert_spec.rb