mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
15 lines
400 B
Ruby
15 lines
400 B
Ruby
require 'spec_helper'
|
|
|
|
describe Devise::ConfirmationsController do
|
|
context "after confirmation" do
|
|
before do
|
|
e = create(:enterprise)
|
|
@request.env["devise.mapping"] = Devise.mappings[:enterprise]
|
|
spree_get :show, confirmation_token: e.confirmation_token
|
|
end
|
|
|
|
it "should redirect to admin root" do
|
|
expect(response).to redirect_to spree.admin_path
|
|
end
|
|
end
|
|
end |