Sha256: f40c96cdb10c255d091282a32b6df4d58316e2e2f407e0679f92e231c861af57
Contents?: true
Size: 1.29 KB
Versions: 24
Compression:
Stored size: 1.29 KB
Contents
require 'test_helper' module KepplerFrontend class ThemesControllerTest < ActionDispatch::IntegrationTest include Engine.routes.url_helpers setup do @theme = keppler_frontend_themes(:one) end test "should get index" do get themes_url assert_response :success end test "should get new" do get new_theme_url assert_response :success end test "should create theme" do assert_difference('Theme.count') do post themes_url, params: { theme: { active: @theme.active, deleted_at: @theme.deleted_at, name: @theme.name, position: @theme.position } } end assert_redirected_to theme_url(Theme.last) end test "should show theme" do get theme_url(@theme) assert_response :success end test "should get edit" do get edit_theme_url(@theme) assert_response :success end test "should update theme" do patch theme_url(@theme), params: { theme: { active: @theme.active, deleted_at: @theme.deleted_at, name: @theme.name, position: @theme.position } } assert_redirected_to theme_url(@theme) end test "should destroy theme" do assert_difference('Theme.count', -1) do delete theme_url(@theme) end assert_redirected_to themes_url end end end
Version data entries
24 entries across 24 versions & 1 rubygems