From db79bd9c3d8e067eedebaacae29c8f50449b76bc Mon Sep 17 00:00:00 2001 From: Tanguy PATTE Date: Mon, 17 Aug 2015 11:43:01 +0200 Subject: [PATCH] add test to commentaire --- spec/models/commentaire_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 spec/models/commentaire_spec.rb diff --git a/spec/models/commentaire_spec.rb b/spec/models/commentaire_spec.rb new file mode 100644 index 000000000..cd430d98f --- /dev/null +++ b/spec/models/commentaire_spec.rb @@ -0,0 +1,9 @@ +require 'spec_helper' + +describe Commentaire do + it { is_expected.to have_db_column(:email) } + it { is_expected.to have_db_column(:body) } + it { is_expected.to have_db_column(:created_at) } + it { is_expected.to have_db_column(:updated_at) } + it { is_expected.to belong_to(:dossier) } +end \ No newline at end of file