infusionvlc/infusion

View on GitHub
test/models/photo_test.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# ~/test/models/photo_test.rb
require 'test_helper'

class PhotoTest < ActiveSupport::TestCase
  test 'Valid Photo' do
    meetup2 = meetups(:one)
    photo = Photo.new(title: 'TestTitle1',
                      meetup_id: meetup2.id,
                      attribution: 'TestAttribution')
    assert_equal photo.valid?, true
    puts 'Test: Photo -> Valid Photo'
  end
end