Sha256: 87f0a2c6d037659ad03e335d30f545a470851ec2f0c098333dadc9828be22239
Contents?: true
Size: 612 Bytes
Versions: 2
Compression:
Stored size: 612 Bytes
Contents
# -*- encoding : utf-8 -*- #FIXME - this shouldn't really be with the controller specs describe CardController, "location test from old integration" do routes { Decko::Engine.routes } before do login_as 'joe_user' end describe 'previous location'do it "gets updated after viewing" do get :read, :id=>"Joe_User" assert_equal "/Joe_User", Card::Env.previous_location end it "doesn't link to nonexistent cards" do get :read, :id=>"Joe_User" get :read, :id=>"Not_Me" get :read, :id=>'*previous' assert_redirected_to '/Joe_User' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wagn-1.16.6 | spec/controllers/location_spec.rb |
wagn-1.16.5 | spec/controllers/location_spec.rb |