Sha256: a5a5ebc33d154ed78bc77486e085f2a391c2f2f906098430810513bb4f40e5ef
Contents?: true
Size: 725 Bytes
Versions: 34
Compression:
Stored size: 725 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 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
34 entries across 34 versions & 2 rubygems