Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

start on has_tags_on

  • Loading branch information...
commit f4c6d1412fbcb0a9828e02eccd963054dbb8a76f 1 parent f13f674
@jackdempsey authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.