Sha256: 22d9ff13a8fd00f9e0c1533fa08a4ea77857c864b4f539e8a55f770f0d36e046
Contents?: true
Size: 1.27 KB
Versions: 8
Compression:
Stored size: 1.27 KB
Contents
require 'test_helper' class RepositoriesControllerTest < ActionController::TestCase # setup do # @repository = repositories(:one) # end # test "should get index" do # get :index # assert_response :success # assert_not_nil assigns(:repositories) # end # test "should get new" do # get :new # assert_response :success # end # test "should create repository" do # assert_difference('Repository.count') do # post :create, repository: { name: @repository.name, path: @repository.path, public: @repository.public } # end # assert_redirected_to repository_path(assigns(:repository)) # end # test "should show repository" do # get :show, id: @repository # assert_response :success # end # test "should get edit" do # get :edit, id: @repository # assert_response :success # end # test "should update repository" do # put :update, id: @repository, repository: { name: @repository.name, path: @repository.path, public: @repository.public } # assert_redirected_to repository_path(assigns(:repository)) # end # test "should destroy repository" do # assert_difference('Repository.count', -1) do # delete :destroy, id: @repository # end # assert_redirected_to repositories_path # end end
Version data entries
8 entries across 8 versions & 1 rubygems