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"
|
last_name "Doe"
|
||||||
organisation "Example Org"
|
organisation "Example Org"
|
||||||
public_email "a@b.com"
|
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"
|
mobile_phone "0883444555"
|
||||||
biography "Lorem ipsum"
|
biography "Lorem ipsum"
|
||||||
github "octocat"
|
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
|
expect(build(:speaker_profile, last_name: nil)).to have_error_on :last_name
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'is invalid without a photo' do
|
it 'is invalid without a picture' do
|
||||||
expect(build(:speaker_profile, photo_url: nil)).to have_error_on :photo_url
|
expect(build(:speaker_profile, picture: nil)).to have_error_on :picture
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'mobile_phone' do
|
describe 'mobile_phone' do
|
||||||
|
|
Loading…
Reference in New Issue