Sha256: 113b8fcb01037667e3bbf9a8b5598be67cfa5dc3685c635a51705342eb1c8353

Contents?: true

Size: 895 Bytes

Versions: 1

Compression:

Stored size: 895 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
booter-1.0.0.rc1 spec/controllers/modal_controller_spec.rb