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.47 test/rails_root/test/unit/share_test.rb
muck-services-0.1.46 test/rails_root/test/unit/share_test.rb
muck-services-0.1.45 test/rails_root/test/unit/share_test.rb
muck-services-0.1.44 test/rails_root/test/unit/share_test.rb
muck-services-0.1.43 test/rails_root/test/unit/share_test.rb
muck-services-0.1.42 test/rails_root/test/unit/share_test.rb
muck-services-0.1.41 test/rails_root/test/unit/share_test.rb
muck-services-0.1.40 test/rails_root/test/unit/share_test.rb
muck-services-0.1.39 test/rails_root/test/unit/share_test.rb
muck-services-0.1.38 test/rails_root/test/unit/share_test.rb
muck-services-0.1.37 test/rails_root/test/unit/share_test.rb
muck-services-0.1.36 test/rails_root/test/unit/share_test.rb
muck-services-0.1.35 test/rails_root/test/unit/share_test.rb
muck-services-0.1.34 test/rails_root/test/unit/share_test.rb
muck-services-0.1.33 test/rails_root/test/unit/share_test.rb
muck-services-0.1.32 test/rails_root/test/unit/share_test.rb
muck-services-0.1.31 test/rails_root/test/unit/share_test.rb
muck-services-0.1.30 test/rails_root/test/unit/share_test.rb
muck-services-0.1.29 test/rails_root/test/unit/share_test.rb
muck-services-0.1.28 test/rails_root/test/unit/share_test.rb