Sha256: 5036e6e79660f8c087a00c1f4a72a3872555dc5db36cd8f5df7b42168db01901

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

require 'test_helper'

class MessageRoutesControllerTest < ActionController::TestCase
  setup do
    @message_route = message_routes(:one)
  end

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

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

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

    assert_redirected_to message_route_path(assigns(:message_route))
  end

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

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

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

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

    assert_redirected_to message_routes_path
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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