Sha256: 190acc6887954b712812b7ab1b23ab06a95c3f6922102e9f716888405ad3098d
Contents?: true
Size: 1.11 KB
Versions: 24
Compression:
Stored size: 1.11 KB
Contents
require 'test_helper' module Flexite class ConfigsControllerTest < ActionController::TestCase setup do @config = configs(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:configs) end test "should get new" do get :new assert_response :success end test "should create config" do assert_difference('Config.count') do post :create, config: { name: @config.name } end assert_redirected_to config_path(assigns(:config)) end test "should show config" do get :show, id: @config assert_response :success end test "should get edit" do get :edit, id: @config assert_response :success end test "should update config" do put :update, id: @config, config: { name: @config.name } assert_redirected_to config_path(assigns(:config)) end test "should destroy config" do assert_difference('Config.count', -1) do delete :destroy, id: @config end assert_redirected_to configs_path end end end
Version data entries
24 entries across 24 versions & 1 rubygems