adds poll CRU actions
This commit is contained in:
16
spec/models/poll_spec.rb
Normal file
16
spec/models/poll_spec.rb
Normal 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
|
||||
Reference in New Issue
Block a user