diff options
author | Francis Irving <francis@mysociety.org> | 2010-09-29 01:17:56 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-09-29 01:17:56 +0100 |
commit | 4c7d4bd7ff63b83b03308050995fdcc9cd266ab9 (patch) | |
tree | 6c8c5e179d949d57ea583947a9f85524ee87065e | |
parent | c59e23e43053b64f5f7c9fdc3cc7d6c465c41f21 (diff) |
Fix test of HasTagStringTag
-rw-r--r-- | spec/models/has_tag_string_tag_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/models/has_tag_string_tag_spec.rb b/spec/models/has_tag_string_tag_spec.rb index c85f64b14..9dfcf3daf 100644 --- a/spec/models/has_tag_string_tag_spec.rb +++ b/spec/models/has_tag_string_tag_spec.rb @@ -1,11 +1,12 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') -describe PublicBodyTag, " when fiddling with tag strings " do +describe HasTagString::HasTagStringTag, " 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 = HasTagString::HasTagStringTag.new + @tag.model = 'PublicBody' + @tag.model_id = public_bodies(:geraldine_public_body).id @tag.name = "moo" @tag.save end |