adds test for question presence

This commit is contained in:
Juanjo Bazán
2015-09-12 12:55:08 +02:00
parent 26113cac96
commit 8df5ed0e02

View File

@@ -12,6 +12,11 @@ describe Proposal do
expect(proposal).to_not be_valid
end
it "should not be valid without an question" do
proposal.question = nil
expect(proposal).to_not be_valid
end
it "should not be valid without a title" do
proposal.title = nil
expect(proposal).to_not be_valid