18 lines
331 B
Ruby
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
|