Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 423 Bytes
require 'test_helper'
class SubscriptionTest < ActiveSupport::TestCase
should belong_to :rubygem
should belong_to :user
context "with a linkset" do
setup do
@subscription = FactoryGirl.create(:subscription)
end
subject { @subscription }
should validate_uniqueness_of(:rubygem_id).scoped_to(:user_id)
should "be valid with factory" do
assert @subscription.valid?
end
end
end
Something went wrong with that request. Please try again.