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

Version Path
flexite-0.0.25 test/functional/flexite/configs_controller_test.rb
flexite-0.0.24 test/functional/flexite/configs_controller_test.rb
flexite-0.0.23 test/functional/flexite/configs_controller_test.rb
flexite-0.0.22 test/functional/flexite/configs_controller_test.rb
flexite-0.0.21 test/functional/flexite/configs_controller_test.rb
flexite-0.0.20 test/functional/flexite/configs_controller_test.rb
flexite-0.0.19 test/functional/flexite/configs_controller_test.rb
flexite-0.0.18 test/functional/flexite/configs_controller_test.rb
flexite-0.0.17 test/functional/flexite/configs_controller_test.rb
flexite-0.0.16 test/functional/flexite/configs_controller_test.rb
flexite-0.0.15 test/functional/flexite/configs_controller_test.rb
flexite-0.0.14 test/functional/flexite/configs_controller_test.rb
flexite-0.0.13 test/functional/flexite/configs_controller_test.rb
flexite-0.0.12 test/functional/flexite/configs_controller_test.rb
flexite-0.0.11 test/functional/flexite/configs_controller_test.rb
flexite-0.0.10 test/functional/flexite/configs_controller_test.rb
flexite-0.0.9 test/functional/flexite/configs_controller_test.rb
flexite-0.0.8 test/functional/flexite/configs_controller_test.rb
flexite-0.0.7 test/functional/flexite/configs_controller_test.rb
flexite-0.0.6 test/functional/flexite/configs_controller_test.rb