test that a story with one real tag doesn't error out

This commit is contained in:
joshua stein 2012-12-16 19:59:41 -06:00
parent fecc2ef5bb
commit 6b0a965c66

View file

@ -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