Skip to content

Commit

Permalink
Changes in the backend admin-path-spec to quiet houndci
Browse files Browse the repository at this point in the history
  • Loading branch information
gamecreature committed Sep 22, 2015
1 parent 9e5f2d6 commit 36062fd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions backend/spec/routing/admin_path_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@

module Spree
module Admin
RSpec.describe "AdminPath", :type => :routing do

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

it "should route to the the configured path" do
it "should route to the the configured path" do
Spree.admin_path = "/secret"
Rails.application.reload_routes!
expect( spree.admin_path ).to eq("/secret")
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")
expect(spree.admin_path).to eq("/admin")
end

end
end
end

0 comments on commit 36062fd

Please sign in to comment.