Sha256: 54002cbb7747bf9dc9b75016ad3c2e3a857080143f40138e2575db78581c1e00

Contents?: true

Size: 386 Bytes

Versions: 5

Compression:

Stored size: 386 Bytes

Contents

require 'test_helper'

class SubscriptionTest < ActiveSupport::TestCase

  test 'one comment_thread_subscription per user per thread' do
    u = FactoryGirl.create(:user)
    ct = FactoryGirl.create(:thread)
    cts0 = Subscription.create(:user => u, :thread => ct)
    cts1 = Subscription.new(:user => u, :thread => ct)
    assert !cts1.save
    cts0.destroy
    cts1.save!
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commontator-0.4.1 test/unit/subscription_test.rb~
commontator-0.3.10 test/unit/subscription_test.rb~
commontator-0.2.4 test/unit/subscription_test.rb~
commontator-0.2.0 test/unit/subscription_test.rb~
commontator-0.1.46 test/unit/subscription_test.rb~