thoughtbot--shoulda-matchers/spec/unit/shoulda/matchers/action_controller/set_session_matcher_spec.rb

18 lines
331 B
Ruby

require 'unit_spec_helper'
describe Shoulda::Matchers::ActionController::SetSessionMatcher, type: :controller do
it_behaves_like 'set session or flash matcher' do
def store_name
'session'
end
def set_store
set_session
end
def store_within(controller)
controller.session
end
end
end