Class: Shoulda::Matchers::ActionController::SetSessionMatcher
- Inherits:
-
Object
- Object
- Shoulda::Matchers::ActionController::SetSessionMatcher
- Extended by:
- Forwardable
- Defined in:
- lib/shoulda/matchers/action_controller/set_session_matcher.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
- #in_context(context) ⇒ Object
-
#initialize ⇒ SetSessionMatcher
constructor
A new instance of SetSessionMatcher.
- #to(expected_value = nil, &block) ⇒ Object
Constructor Details
#initialize ⇒ SetSessionMatcher
Returns a new instance of SetSessionMatcher.
137 138 139 140 |
# File 'lib/shoulda/matchers/action_controller/set_session_matcher.rb', line 137 def initialize store = SessionStore.new = SetSessionOrFlashMatcher.new(store) end |
Instance Method Details
#[](key) ⇒ Object
147 148 149 150 |
# File 'lib/shoulda/matchers/action_controller/set_session_matcher.rb', line 147 def [](key) [key] self end |
#in_context(context) ⇒ Object
142 143 144 145 |
# File 'lib/shoulda/matchers/action_controller/set_session_matcher.rb', line 142 def in_context(context) .in_context(context) self end |
#to(expected_value = nil, &block) ⇒ Object
152 153 154 155 |
# File 'lib/shoulda/matchers/action_controller/set_session_matcher.rb', line 152 def to(expected_value = nil, &block) .to(expected_value, &block) self end |