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