Sha256: c1abeb4e3a9febb67c75c89dbcd3cd269db030cffd711792ccd85d8618109e8f

Contents?: true

Size: 606 Bytes

Versions: 15

Compression:

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

15 entries across 15 versions & 2 rubygems

Version Path
wagn-1.21.1 spec/controllers/location_spec.rb
decko-0.1 spec/controllers/location_spec.rb
wagn-1.21.0 spec/controllers/location_spec.rb
wagn-1.20.4 spec/controllers/location_spec.rb
wagn-1.20.3 spec/controllers/location_spec.rb
wagn-1.20.2 spec/controllers/location_spec.rb
wagn-1.20.1 spec/controllers/location_spec.rb
wagn-1.20.0 spec/controllers/location_spec.rb
wagn-1.19.6 spec/controllers/location_spec.rb
wagn-1.19.5 spec/controllers/location_spec.rb
wagn-1.19.4 spec/controllers/location_spec.rb
wagn-1.19.3 spec/controllers/location_spec.rb
wagn-1.19.2 spec/controllers/location_spec.rb
wagn-1.19.1 spec/controllers/location_spec.rb
wagn-1.19.0 spec/controllers/location_spec.rb