Sha256: 80fe20029a7f740e95db504c51043a9b5321d3d327abf62c8f14d4eb5a67cdb0
Contents?: true
Size: 1.01 KB
Versions: 21
Compression:
Stored size: 1.01 KB
Contents
require 'test_helper' module Ems class TagsControllerTest < ActionController::TestCase setup do @tag = tags(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:tags) end test "should get new" do get :new assert_response :success end test "should create tag" do assert_difference('Tag.count') do post :create, tag: { } end assert_redirected_to tag_path(assigns(:tag)) end test "should show tag" do get :show, id: @tag assert_response :success end test "should get edit" do get :edit, id: @tag assert_response :success end test "should update tag" do put :update, id: @tag, tag: { } assert_redirected_to tag_path(assigns(:tag)) end test "should destroy tag" do assert_difference('Tag.count', -1) do delete :destroy, id: @tag end assert_redirected_to tags_path end end end
Version data entries
21 entries across 21 versions & 1 rubygems