require 'test_helper'

class RoundCreationTest < ActionDispatch::IntegrationTest
  test "rounds are viewable after creation" do
    get '/'
    assert_response :success

    post '/round/' + assigns[:round].url, charity: 'test_charity'
    assert_response :success
  end
end

require 'test_helper'

class RoundCreationTest < ActionDispatch::IntegrationTest
  test "rounds are viewable after creation" do
    get '/'
    assert_response :success

    post '/round/' + assigns[:round].url, charity: 'test_charity'
    assert_response :success

    assert_equal 'test_charity', assigns[:round].charity

    get '/round/' + assigns[:round].url
    assert_response :success
  end
end

Test round can be viewed via GET after creation
Test round can be viewed via GET after creation
