Sha256: 9477cd15f5c2be7c3f559e9ab214b9536e18bcf880d48b7ba8d78cbe1ee53654

Contents?: true

Size: 587 Bytes

Versions: 16

Compression:

Stored size: 587 Bytes

Contents

require 'spec_helper'

module Spree
  module Admin
    RSpec.describe "AdminPath", type: :routing do
      it "shoud route to admin by default" do
        expect(spree.admin_path).to eq("/admin")
      end

      it "should route to the the configured path" do
        Spree.admin_path = "/secret"
        Rails.application.reload_routes!
        expect(spree.admin_path).to eq("/secret")

        # restore the path for other tests
        Spree.admin_path = "/admin"
        Rails.application.reload_routes!
        expect(spree.admin_path).to eq("/admin")
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
spree_backend-3.3.0.rc1 spec/routing/admin_path_spec.rb
spree_backend-3.1.5 spec/routing/admin_path_spec.rb
spree_backend-3.2.1 spec/routing/admin_path_spec.rb
spree_backend-3.2.0 spec/routing/admin_path_spec.rb
spree_backend-3.1.4 spec/routing/admin_path_spec.rb
spree_backend-3.2.0.rc3 spec/routing/admin_path_spec.rb
spree_backend-3.2.0.rc2 spec/routing/admin_path_spec.rb
spree_backend-3.2.0.rc1 spec/routing/admin_path_spec.rb
spree_backend-3.1.3 spec/routing/admin_path_spec.rb
spree_backend-3.1.2 spec/routing/admin_path_spec.rb
spree_backend-3.1.1 spec/routing/admin_path_spec.rb
spree_backend-3.1.0 spec/routing/admin_path_spec.rb
spree_backend-3.1.0.rc4 spec/routing/admin_path_spec.rb
spree_backend-3.1.0.rc3 spec/routing/admin_path_spec.rb
spree_backend-3.1.0.rc2 spec/routing/admin_path_spec.rb
spree_backend-3.1.0.rc1 spec/routing/admin_path_spec.rb