Sha256: 33a845515ac1134b9128094693773c84e0e98c31f49c8634c59eeb7f9d5dd47a
Contents?: true
Size: 558 Bytes
Versions: 1
Compression:
Stored size: 558 Bytes
Contents
require 'spec_helper' module Vxod describe BackPath do let(:session){ {} } let(:back_url){ rnd('back_url') } let(:rack_app){ double('rack_app', session: session) } let(:back_path){ BackPath.new(rack_app) } describe '#get' do it 'take back path from session' do session['vxod.back_path'] = back_url expect(back_path.get).to eq back_url end it 'return default back path when no present in session' do expect(back_path.get).to eq Vxod.config.after_login_default_path end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vxod-0.0.2 | spec/lib/back_path_spec.rb |