class Shoulda::Matchers::ActionController::SetSessionMatcher

@private

Attributes

underlying_matcher[R]

Public Class Methods

new() click to toggle source
# File lib/shoulda/matchers/action_controller/set_session_matcher.rb, line 137
def initialize
  store = SessionStore.new
  @underlying_matcher = SetSessionOrFlashMatcher.new(store)
end

Public Instance Methods

[](key) click to toggle source
# File lib/shoulda/matchers/action_controller/set_session_matcher.rb, line 147
def [](key)
  underlying_matcher[key]
  self
end
in_context(context) click to toggle source
# File lib/shoulda/matchers/action_controller/set_session_matcher.rb, line 142
def in_context(context)
  underlying_matcher.in_context(context)
  self
end
to(expected_value = nil, &block) click to toggle source
# File lib/shoulda/matchers/action_controller/set_session_matcher.rb, line 152
def to(expected_value = nil, &block)
  underlying_matcher.to(expected_value, &block)
  self
end