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

Version Path
muck-services-0.1.27 test/rails_root/test/unit/share_test.rb
muck-services-0.1.26 test/rails_root/test/unit/share_test.rb
muck-services-0.1.25 test/rails_root/test/unit/share_test.rb
muck-services-0.1.24 test/rails_root/test/unit/share_test.rb
muck-services-0.1.23 test/rails_root/test/unit/share_test.rb
muck-services-0.1.22 test/rails_root/test/unit/share_test.rb
muck-services-0.1.21 test/rails_root/test/unit/share_test.rb
muck-services-0.1.20 test/rails_root/test/unit/share_test.rb
muck-services-0.1.19 test/rails_root/test/unit/share_test.rb
muck-services-0.1.18 test/rails_root/test/unit/share_test.rb
muck-services-0.1.17 test/rails_root/test/unit/share_test.rb
muck-services-0.1.16 test/rails_root/test/unit/share_test.rb
muck-services-0.1.14 test/rails_root/test/unit/share_test.rb
muck-services-0.1.13 test/rails_root/test/unit/share_test.rb
muck-services-0.1.12 test/rails_root/test/unit/share_test.rb
muck-services-0.1.11 test/rails_root/test/unit/share_test.rb