spec/features/person_profile_spec.rb in curate-0.5.4 vs spec/features/person_profile_spec.rb in curate-0.5.5
- old
+ new
@@ -2,11 +2,11 @@
describe 'Profile for a Person: ' do
context 'logged in user' do
let(:password) { FactoryGirl.attributes_for(:user).fetch(:password) }
- let(:account) { FactoryGirl.create(:account, display_name: 'Iron Man') }
+ let(:account) { FactoryGirl.create(:account, name: 'Iron Man') }
let(:user) { account.user }
let(:person) { account.person }
before { login_as(user) }
# TODO: confirm the intent of this test
@@ -52,10 +52,10 @@
end
end
context 'A person when logged in' do
let(:password) { FactoryGirl.attributes_for(:user).fetch(:password) }
- let(:account) { FactoryGirl.create(:account, display_name: 'Iron Man') }
+ let(:account) { FactoryGirl.create(:account, name: 'Iron Man') }
let(:user) { account.user }
let(:person) { account.person }
let(:image_file){ Rails.root.join('../fixtures/files/image.png') }
before do
login_as(user)