Sha256: 22053410bb5ba1f1f21b3c1c62e24cc51dc903cec87ea867de7e276d401f03a2
Contents?: true
Size: 371 Bytes
Versions: 8
Compression:
Stored size: 371 Bytes
Contents
require 'test_helper' class SubscriptionTest < ActiveSupport::TestCase test 'one 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
8 entries across 8 versions & 1 rubygems