Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

start on has_tags_on

  • Loading branch information...
commit f4c6d1412fbcb0a9828e02eccd963054dbb8a76f 1 parent f13f674
jack dempsey authored December 02, 2008
19  spec/sequel_taggable/sequel_taggable_spec.rb
@@ -18,15 +18,14 @@
18 18
   #   DefaultTaggedModel.should respond_to(:has_tags_on)
19 19
   #   UntaggedModel.should respond_to(:has_tags_on)
20 20
   end
21  
-  # 
22  
-  # describe ".has_tags_on" do
23  
-  #   it "should accept an array of context names" do
24  
-  #     class HasTagsOnTestModel
25  
-  #       include DataMapper::Resource
26  
-  #       property :id, Integer, :serial => true
27  
-  #     end
28  
-  #     lambda{HasTagsOnTestModel.has_tags_on(:should, 'not', :raise)}.should_not raise_error(ArgumentError)
29  
-  #   end
  21
+
  22
+  describe ".has_tags_on" do
  23
+    it "should accept an array of context names" do
  24
+      class HasTagsOnTestModel < Sequel::Model
  25
+        is :taggable
  26
+      end
  27
+      lambda{HasTagsOnTestModel.has_tags_on(:should, 'not', :raise)}.should_not raise_error(ArgumentError)
  28
+    end
30 29
   # 
31 30
   #   it "should create taggable functionality for each of the context names passed" do
32 31
   #     class TestModel
@@ -67,5 +66,5 @@
67 66
   #     a.should_not respond_to(:skill_list=)
68 67
   #     a.should_not respond_to(:skills)
69 68
   #   end
70  
-  # end
  69
+  end
71 70
 end

0 notes on commit f4c6d14

Please sign in to comment.
Something went wrong with that request. Please try again.