mirror of
https://github.com/wahyd4/ocelots.git
synced 2026-08-09 04:56:21 +10:00
21 lines
460 B
Ruby
21 lines
460 B
Ruby
require 'spec_helper'
|
|
|
|
describe ProfileController do
|
|
render_views
|
|
|
|
describe :update do
|
|
before(:each) do
|
|
@person = sign_in
|
|
end
|
|
|
|
it 'updates profile' do
|
|
post :update, person: {full_name: 'Test User'}
|
|
@person.reload.full_name.should == 'Test User'
|
|
end
|
|
|
|
it 'does not update profile with valid value' do
|
|
post :update, person: {full_name: ''}
|
|
@person.reload.full_name.should_not == ''
|
|
end
|
|
end
|
|
end |