Sha256: 2f53170add81cb54e287fb80463f62232a7e08f6ef62c8d698edd2e9264e353e

Contents?: true

Size: 656 Bytes

Versions: 29

Compression:

Stored size: 656 Bytes

Contents

require File.expand_path('../../test_helper', File.dirname(__FILE__))

class CmsAdmin::DialogsControllerTest < ActionController::TestCase

  def test_get_image_dialog
    get :show, :site_id => cms_sites(:default), :type => 'image'
    assert_response :success
    assert_template 'image'
    assert_select "input[name=image_url]"
  end
  
  def test_get_link_dialog
    get :show, :site_id => cms_sites(:default), :type => 'link'
    assert_response :success
    assert_template 'link'
  end
  
  def test_get_invalid
    get :show, :site_id => cms_sites(:default), :type => 'invalid'
    assert_response :success
    assert_blank response.body
  end

end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.6.8 test/functional/cms_admin/dialogs_controller_test.rb
comfortable_mexican_sofa-1.6.7 test/functional/cms_admin/dialogs_controller_test.rb
comfortable_mexican_sofa-1.6.6 test/functional/cms_admin/dialogs_controller_test.rb
comfortable_mexican_sofa-1.6.5 test/functional/cms_admin/dialogs_controller_test.rb
comfortable_mexican_sofa-1.6.4 test/functional/cms_admin/dialogs_controller_test.rb
comfortable_mexican_sofa-1.6.3 test/functional/cms_admin/dialogs_controller_test.rb
comfortable_mexican_sofa-1.6.2 test/functional/cms_admin/dialogs_controller_test.rb
comfortable_mexican_sofa-1.6.1 test/functional/cms_admin/dialogs_controller_test.rb
comfortable_mexican_sofa-1.6.0 test/functional/cms_admin/dialogs_controller_test.rb