Make sure the specs are passing
This commit is contained in:
parent
5554ffd6aa
commit
15f21daff0
|
@ -6,7 +6,7 @@ FactoryGirl.define do
|
|||
last_name "Doe"
|
||||
organisation "Example Org"
|
||||
public_email "a@b.com"
|
||||
photo_url "http://placehold.it/50x50"
|
||||
picture { Rack::Test::UploadedFile.new(File.join(Rails.root, 'spec', 'support', 'picture.jpg')) }
|
||||
mobile_phone "0883444555"
|
||||
biography "Lorem ipsum"
|
||||
github "octocat"
|
||||
|
|
|
@ -9,8 +9,8 @@ RSpec.describe SpeakerProfile, :type => :model do
|
|||
expect(build(:speaker_profile, last_name: nil)).to have_error_on :last_name
|
||||
end
|
||||
|
||||
it 'is invalid without a photo' do
|
||||
expect(build(:speaker_profile, photo_url: nil)).to have_error_on :photo_url
|
||||
it 'is invalid without a picture' do
|
||||
expect(build(:speaker_profile, picture: nil)).to have_error_on :picture
|
||||
end
|
||||
|
||||
describe 'mobile_phone' do
|
||||
|
|
Loading…
Reference in New Issue