From ed405d68f5c2c95423d3384e8a6831b743c0e888 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Tue, 9 Mar 2021 05:17:28 -0700 Subject: [PATCH 1/2] Revert "Validate year field" --- app/models/book.rb | 2 +- spec/features/books_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/book.rb b/app/models/book.rb index cf1e96b..6c49d40 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 diff --git a/spec/features/books_spec.rb b/spec/features/books_spec.rb index ebdfc52..b381d64 100644 --- a/spec/features/books_spec.rb +++ b/spec/features/books_spec.rb @@ -21,7 +21,7 @@ end # TODO: Replace `skip` with `it` - it "validates a numeric year" do + skip "validates a numeric year" do visit "/books/new" within "#as_books-create--form" do fill_in "Title", with: "Pro Git" From bdc2f6bcaa01d63ab42ac075c15bacb629ca9d35 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Wed, 21 Apr 2021 12:51:05 -0600 Subject: [PATCH 2/2] Create new-file.md --- new-file.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 new-file.md diff --git a/new-file.md b/new-file.md new file mode 100644 index 0000000..8bd6648 --- /dev/null +++ b/new-file.md @@ -0,0 +1 @@ +asdf