test that a story with one real tag doesn't error out
This commit is contained in:
parent
fecc2ef5bb
commit
6b0a965c66
|
@ -31,6 +31,8 @@ describe Story do
|
|||
it "must have at least one tag" do
|
||||
expect { Story.make!(:tags_a => nil) }.to raise_error
|
||||
expect { Story.make!(:tags_a => [ "", " " ]) }.to raise_error
|
||||
|
||||
expect { Story.make!(:tags_a => [ "", "tag1" ]) }.to_not raise_error
|
||||
end
|
||||
|
||||
it "checks for invalid urls" do
|
||||
|
|
Loading…
Reference in a new issue