Sha256: d59159096b32dbc6f63cce763a07d255fdfaee28d0cb78262c1274cad8c72bbf

Contents?: true

Size: 742 Bytes

Versions: 3

Compression:

Stored size: 742 Bytes

Contents

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

class ApplicationsControllerSanityTest < ActionController::TestCase
  tests ApplicationsController

  def get_post_form(name = 'cart!diy-0.1')
    {
      :name => 'test1',
      :application_type => name,
      :domain_id => uuid.to_s
    }
  end

  test "should create application and domain, and delete app" do
    with_unique_user
    post(:create, {:application => get_post_form})

    assert app = assigns(:application)
    assert app.errors.empty?, app.errors.to_hash.inspect
    assert domain = assigns(:domain)
    assert_redirected_to get_started_application_path(app, :wizard => true)

    delete :destroy, :id => app.id
    assert_redirected_to applications_path
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openshift-origin-console-1.3.4 test/functional/applications_controller_sanity_test.rb
openshift-origin-console-1.3.3 test/functional/applications_controller_sanity_test.rb
openshift-origin-console-1.3.2 test/functional/applications_controller_sanity_test.rb