Sha256: bcc4800443c71ff07707983d475bae858054aa973753b3d88d82e60c7c2dc98c

Contents?: true

Size: 381 Bytes

Versions: 3

Compression:

Stored size: 381 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Session, '#clean?' do
  subject { session.clean? }

  include_context 'Session::Relation'

  context 'when tracker has no pending state changes' do
    it { should be_true }
  end

  context 'when tracker has pending state changes' do
    before do
      session[:users].delete(user)
    end

    it { should be_false }
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

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