require 'test_helper'

class SchemesControllerTest < ActionController::TestCase
  test "should get new" do
    get :new
    assert_response :success
  end

end

require 'test_helper'

class SchemesControllerTest < ActionController::TestCase
  test 'redirect to splash if not logged in' do
    get :new, {}, {id: nil}
    assert_redirected_to :root
  end

  test 'gets new if logged in' do
    get :new, {}, {id: true}
    assert_response :success
  end

end

Change some tests for schemes controller
Change some tests for schemes controller
