Sha256: 8cd6f75d5c22b9bc5aeb7d41ec06dd6a10c144d68f5018075c93320446b79cab
Contents?: true
Size: 621 Bytes
Versions: 3
Compression:
Stored size: 621 Bytes
Contents
module ErrorPageAssertions def default_not_found_message /not found/i end def default_error_message /An error has occurred/i end def assert_not_found_page(title=default_not_found_message) assert_response :success assert_select 'h1', title end def assert_error_page(title=default_error_message) assert_response :success assert_select 'h1', title assert assigns(:reference_id) assert_select 'p', /#{assigns(:reference_id)}/ end end class ActionController::TestCase include ErrorPageAssertions end class ActionDispatch::IntegrationTest include ErrorPageAssertions end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
openshift-origin-console-1.3.4 | test/support/errors.rb |
openshift-origin-console-1.3.3 | test/support/errors.rb |
openshift-origin-console-1.3.2 | test/support/errors.rb |