From c59e23e43053b64f5f7c9fdc3cc7d6c465c41f21 Mon Sep 17 00:00:00 2001 From: Francis Irving Date: Wed, 29 Sep 2010 01:15:18 +0100 Subject: Factor out model of public body tags into generic tag string model --- spec/models/has_tag_string_tag_spec.rb | 14 ++++++++++++++ spec/models/public_body_tag_spec.rb | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 spec/models/has_tag_string_tag_spec.rb delete mode 100644 spec/models/public_body_tag_spec.rb (limited to 'spec/models') diff --git a/spec/models/has_tag_string_tag_spec.rb b/spec/models/has_tag_string_tag_spec.rb new file mode 100644 index 000000000..c85f64b14 --- /dev/null +++ b/spec/models/has_tag_string_tag_spec.rb @@ -0,0 +1,14 @@ +require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') + +describe PublicBodyTag, " when fiddling with tag strings " do + fixtures :public_bodies + + it "should be able to make a new tag and save it" do + @tag = PublicBodyTag.new + @tag.public_body = public_bodies(:geraldine_public_body) + @tag.name = "moo" + @tag.save + end + +end + diff --git a/spec/models/public_body_tag_spec.rb b/spec/models/public_body_tag_spec.rb deleted file mode 100644 index 09a597bd0..000000000 --- a/spec/models/public_body_tag_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') - -describe PublicBodyTag, " when fiddling with public body tags " do - fixtures :public_bodies - - it "should be able to make a new tag and save it" do - @tag = PublicBodyTag.new - @tag.public_body = public_bodies(:geraldine_public_body) - @tag.name = "moo" - @tag.save - end - -end - -- cgit v1.2.3