Skip to content

Commit

Permalink
add test for taggings
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgolick committed Dec 9, 2008
1 parent 4c8b8bf commit 72673bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/tagging.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
class Tagging < ActiveRecord::Base
belongs_to :tag
end
8 changes: 8 additions & 0 deletions test/tagging_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require File.dirname(__FILE__) + '/test_helper'

Expectations do
expect Tag do
t = Tagging.new :tag => Tag.new(:name => 'some_tag')
t.tag
end
end

0 comments on commit 72673bf

Please sign in to comment.