Sha256: 9bfaf1e2c29a518c37a3b0dde36abd5bacb93e8dcfd6d36faf1436dec31c43c6

Contents?: true

Size: 608 Bytes

Versions: 14

Compression:

Stored size: 608 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

14 entries across 14 versions & 1 rubygems

Version Path
wagn-1.17.4 spec/controllers/location_spec.rb
wagn-1.17.3 spec/controllers/location_spec.rb
wagn-1.17.2 spec/controllers/location_spec.rb
wagn-1.17.1 spec/controllers/location_spec.rb
wagn-1.17.0 spec/controllers/location_spec.rb
wagn-1.16.15 spec/controllers/location_spec.rb
wagn-1.16.14 spec/controllers/location_spec.rb
wagn-1.16.13 spec/controllers/location_spec.rb
wagn-1.16.12 spec/controllers/location_spec.rb
wagn-1.16.11 spec/controllers/location_spec.rb
wagn-1.16.10 spec/controllers/location_spec.rb
wagn-1.16.9 spec/controllers/location_spec.rb
wagn-1.16.8 spec/controllers/location_spec.rb
wagn-1.16.7 spec/controllers/location_spec.rb