From 6b0a965c66ee9ef2742e0e15716a4dc189d811d8 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Sun, 16 Dec 2012 19:59:41 -0600 Subject: [PATCH] test that a story with one real tag doesn't error out --- spec/models/story_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/models/story_spec.rb b/spec/models/story_spec.rb index 1688c91..ef790a5 100644 --- a/spec/models/story_spec.rb +++ b/spec/models/story_spec.rb @@ -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