From 361116a9ec0ab14cfc3b883d40e6476ccae8e800 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Fri, 17 Oct 2014 18:31:35 +1100 Subject: [PATCH] Explicitly set confirmed_at for unconfirmed enterprise --- spec/controllers/devise/confirmation_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/devise/confirmation_controller_spec.rb b/spec/controllers/devise/confirmation_controller_spec.rb index eda5dc4823..b8719bbd8f 100644 --- a/spec/controllers/devise/confirmation_controller_spec.rb +++ b/spec/controllers/devise/confirmation_controller_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' describe Devise::ConfirmationsController do context "after confirmation" do before do - e = create(:enterprise) + e = create(:enterprise, confirmed_at: nil) @request.env["devise.mapping"] = Devise.mappings[:enterprise] spree_get :show, confirmation_token: e.confirmation_token end