Sha256: 2ddd8ce2ab0dadfc507f53ccf2cd5c1f11cad098b91554100c2ba7489050c1c8
Contents?: true
Size: 526 Bytes
Versions: 2
Compression:
Stored size: 526 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Session::Relation, '#state' do subject { users.state(user) } include_context 'Session::Relation' context 'when object is tracked' do it { should be_kind_of(Session::State) } its(:object) { should be(user) } end context 'when object is not tracked' do let(:user) { model.new } specify do expect { subject }.to raise_error( Session::ObjectNotTrackedError, "Tracker doesn't include #{user.inspect}" ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rom-session-0.1.1 | spec/unit/rom/session/relation/state_spec.rb |
rom-session-0.1.0 | spec/unit/rom/session/relation/state_spec.rb |