Sha256: 765f208edf2cb111189a7191dbc14d3c8dc78c54f99d757b9e5083b1e1fbc11c

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

require 'test_helper'

class MessageTypesControllerTest < ActionController::TestCase
  setup do
    @message_type = message_types(:one)
  end

  test "should get index" do
    get :index
    assert_response :success
    assert_not_nil assigns(:message_types)
  end

  test "should get new" do
    get :new
    assert_response :success
  end

  test "should create message_type" do
    assert_difference('MessageType.count') do
      post :create, message_type: @message_type.attributes
    end

    assert_redirected_to message_type_path(assigns(:message_type))
  end

  test "should show message_type" do
    get :show, id: @message_type
    assert_response :success
  end

  test "should get edit" do
    get :edit, id: @message_type
    assert_response :success
  end

  test "should update message_type" do
    put :update, id: @message_type, message_type: @message_type.attributes
    assert_redirected_to message_type_path(assigns(:message_type))
  end

  test "should destroy message_type" do
    assert_difference('MessageType.count', -1) do
      delete :destroy, id: @message_type
    end

    assert_redirected_to message_types_path
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eventbus-0.0.20 admin/test/functional/message_types_controller_test.rb