From 1fa2cf609c71952c6807db16bde6878b211a413a Mon Sep 17 00:00:00 2001 From: Zog Date: Wed, 2 May 2018 09:45:17 +0200 Subject: Refs #6572; Crete Referentials in a pending state And fix a bug preventing the deletion of referentials without a schema --- spec/controllers/referentials_controller_spec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/controllers') diff --git a/spec/controllers/referentials_controller_spec.rb b/spec/controllers/referentials_controller_spec.rb index acab3abd9..8edd8699f 100644 --- a/spec/controllers/referentials_controller_spec.rb +++ b/spec/controllers/referentials_controller_spec.rb @@ -119,6 +119,7 @@ describe ReferentialsController, :type => :controller do it "creates the new referential" do expect{request}.to change{Referential.count}.by 1 expect(Referential.last.name).to eq "Duplicated" + expect(Referential.last.state).to eq :pending end it "displays a flash message" do -- cgit v1.2.3