Sha256: de431ce482c264ac03440ebb53370450bef0037eb27a9b7cfbfc405e52e0d25e
Contents?: true
Size: 758 Bytes
Versions: 36
Compression:
Stored size: 758 Bytes
Contents
# == Schema Information # # Table name: shares # # id :integer(4) not null, primary key # uri :string(2083) default(""), not null # title :string(255) # message :text # shared_by_id :integer(4) not null # created_at :datetime # updated_at :datetime # comment_count :integer(4) default(0) # entry_id :integer(4) # require File.dirname(__FILE__) + '/../test_helper' class ShareTest < ActiveSupport::TestCase context "share instance" do setup do @share = Factory(:share) end subject { @share } should_belong_to :entry should "return entry for discover_attach_to" do assert_equal @share.entry, @share.discover_attach_to end end end
Version data entries
36 entries across 36 versions & 1 rubygems