Sha256: 6caa7a607bd8c38e4eff425580160ea1c96334de3729ede1a4b8a3719ca8e18a
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
require 'test_helper' class MessagesControllerTest < ActionController::TestCase setup do @message = messages(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:messages) end test "should get new" do get :new assert_response :success end test "should create message" do assert_difference('Message.count') do post :create, message: @message.attributes end assert_redirected_to message_path(assigns(:message)) end test "should show message" do get :show, id: @message assert_response :success end test "should get edit" do get :edit, id: @message assert_response :success end test "should update message" do put :update, id: @message, message: @message.attributes assert_redirected_to message_path(assigns(:message)) end test "should destroy message" do assert_difference('Message.count', -1) do delete :destroy, id: @message end assert_redirected_to messages_path end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eventbus-0.0.20 | admin/test/functional/messages_controller_test.rb |