From af68d93a6cfb498e945f4904c4ff15da2bbfb0d7 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 12 Jul 2019 15:37:11 -0300 Subject: [PATCH] =?UTF-8?q?el=20nombre=20del=20sitio=20es=20=C3=BAnico?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/models/site_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/models/site_test.rb b/test/models/site_test.rb index 66ad25b..3cc695d 100644 --- a/test/models/site_test.rb +++ b/test/models/site_test.rb @@ -13,6 +13,13 @@ class SiteTest < ActiveSupport::TestCase assert site.destroy end + test 'el nombre tiene que ser Ășnico' do + site = create :site + site2 = build :site, name: site.name + + assert_not site2.valid? + end + test 'al destruir un sitio se eliminan los archivos' do site = create :site assert site.destroy