From 2b33b39eea3ad0972b20d1ff0f5fb5818abcb4aa Mon Sep 17 00:00:00 2001 From: JamesStudent <32486781+JamesStudent@users.noreply.github.com> Date: Tue, 3 Oct 2017 17:03:46 -0500 Subject: [PATCH] Adding new test for the app --- app/models/book.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/book.rb b/app/models/book.rb index 438031b..cf1e96b 100644 --- a/app/models/book.rb +++ b/app/models/book.rb @@ -1,6 +1,6 @@ class Book < ApplicationRecord validates :title, presence: true - #validates :year_published, numericality: { only_integer: true } + validates :year_published, numericality: { only_integer: true } def old? return false unless year_published