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