require 'spec_helper' describe ModalController do render_views it 'renders' do get :simple response.should be_success assert_select 'div.modal.hide.fade#auth-modal' do assert_select 'form[class=?]', 'form-horizontal' do assert_select '.modal-header' do assert 'a.close[data-dismiss=?]', 'modal' assert_select 'h3', 'User' end assert_select '.modal-body' do assert_select 'input[type=email]' assert_select 'input[type=password]' end assert_select '.modal-footer' do assert_select '.pull-left' do assert_select 'a[href=#][data-dismiss=?][class=?]', 'modal', 'btn' end assert_select '.pull-right' do assert_select 'input[type=submit][class=?][value=?]', 'btn btn-primary', 'Sign in' end end end end end end