Skip to content

Commit

Permalink
Add missing spec
Browse files Browse the repository at this point in the history
  • Loading branch information
taitus committed Dec 3, 2017
1 parent f910d36 commit cdd69f9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/models/attachment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@
expect(attachment).not_to be_valid
end

it "should be invalid if no title" do
it "should be invalid if no file" do
attachment.file = nil

expect(attachment).not_to be_valid
end

it "should be invalid if no public checked" do
attachment.public = nil

expect(attachment).not_to be_valid
end

end

0 comments on commit cdd69f9

Please sign in to comment.