adds poll CRU actions

This commit is contained in:
rgarcia
2016-09-25 10:20:38 +02:00
parent c965e2dda1
commit 0795da02d8
13 changed files with 157 additions and 59 deletions

16
spec/models/poll_spec.rb Normal file
View File

@@ -0,0 +1,16 @@
require 'rails_helper'
describe :poll do
let(:poll) { build(:poll) }
it "should be valid" do
expect(poll).to be_valid
end
it "should not be valid without a name" do
poll.name = nil
expect(poll).to_not be_valid
end
end