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