Permalink
Browse files

start on has_tags_on

  • Loading branch information...
1 parent f13f674 commit f4c6d1412fbcb0a9828e02eccd963054dbb8a76f @jackdempsey committed Dec 3, 2008
Showing with 9 additions and 10 deletions.
  1. +9 −10 spec/sequel_taggable/sequel_taggable_spec.rb
View
19 spec/sequel_taggable/sequel_taggable_spec.rb
@@ -18,15 +18,14 @@
# DefaultTaggedModel.should respond_to(:has_tags_on)
# UntaggedModel.should respond_to(:has_tags_on)
end
- #
- # describe ".has_tags_on" do
- # it "should accept an array of context names" do
- # class HasTagsOnTestModel
- # include DataMapper::Resource
- # property :id, Integer, :serial => true
- # end
- # lambda{HasTagsOnTestModel.has_tags_on(:should, 'not', :raise)}.should_not raise_error(ArgumentError)
- # end
+
+ describe ".has_tags_on" do
+ it "should accept an array of context names" do
+ class HasTagsOnTestModel < Sequel::Model
+ is :taggable
+ end
+ lambda{HasTagsOnTestModel.has_tags_on(:should, 'not', :raise)}.should_not raise_error(ArgumentError)
+ end
#
# it "should create taggable functionality for each of the context names passed" do
# class TestModel
@@ -67,5 +66,5 @@
# a.should_not respond_to(:skill_list=)
# a.should_not respond_to(:skills)
# end
- # end
+ end
end

0 comments on commit f4c6d14

Please sign in to comment.