Sha256: e03f02a62fec0ccce193261d6870c57eeeaa95365183c946d5765cf8b603e0f0
Contents?: true
Size: 1.91 KB
Versions: 10
Compression:
Stored size: 1.91 KB
Contents
# == Schema Information # # Table name: lentil_images # # id :integer not null, primary key # description :text # created_at :datetime not null # updated_at :datetime not null # like_votes_count :integer default(0) # url :string(255) # user_id :integer # state :integer default(0) # external_identifier :string(255) # long_url :string(255) # original_metadata :text # original_datetime :datetime # staff_like :boolean default(FALSE) # moderator_id :integer # moderated_at :datetime # second_moderation :boolean default(FALSE) # wins_count :integer default(0) # losses_count :integer default(0) # win_pct :float # popular_score :integer default(0) # file_harvested_date :datetime # file_harvest_failed :integer default(0) # donor_agreement_submitted_date :datetime # donor_agreement_failed :integer default(0) # failed_file_checks :integer default(0) # file_last_checked :datetime # donor_agreement_rejected :datetime # do_not_request_donation :boolean # require 'test_helper' class ImageTest < ActiveSupport::TestCase test "Image should have a tag" do image = lentil_images(:one) tag = lentil_tags(:hunttesting) assert_equal tag.name, image.tags.first.name end test "Image should have a license" do image = lentil_images(:one) license = lentil_licenses(:one) assert_equal license.name, image.licenses.first.name end end
Version data entries
10 entries across 10 versions & 1 rubygems