Sha256: ae9dd1badf131c4fe6c3cadbca4cecb0649fe6e2441ad95014c20634c89f30bb

Contents?: true

Size: 403 Bytes

Versions: 3

Compression:

Stored size: 403 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Session::Relation, '#track' do
  subject { users.track(user) }

  include_context 'Session::Relation'

  let(:user) { model.new(id: 3, name: 'John') }

  before do
    users.track(user)
  end

  it_behaves_like 'a command method'

  it { should be(subject) }

  it 'starts tracking the object' do
    expect(users.tracking?(user)).to be_true
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
rom-0.2.0 spec/unit/rom/session/relation/track_spec.rb
rom-session-0.1.1 spec/unit/rom/session/relation/track_spec.rb
rom-session-0.1.0 spec/unit/rom/session/relation/track_spec.rb