admin/spec/support/features/shared_examples/avatarable_spec.rb in gaku-0.1.1 vs admin/spec/support/features/shared_examples/avatarable_spec.rb in gaku-0.2.0

- old
+ new

@@ -1,21 +1,16 @@ shared_examples 'upload avatar' do - - it 'uploads', js:true do + it 'uploads', js: true do sleep 0.5 click '#upload-picture-link' absolute_path = Rails.root + '../support/120x120.jpg' attach_file @file_name, absolute_path click_button 'Upload' flash_updated? end - end - shared_examples 'show avatar' do - it 'shows avatar' do page.should have_css '#avatar-picture' end - -end \ No newline at end of file +end