@Tony **********
the airline can indeed refuse to let you board the plane without proof of onward travel.
That's because IF they let you board the plane without a valid visa to thailand and without proof of onward travel OUT of the country and you're denied entry to thailand the airline would have to lug you back to where you came from.
The solution IF you don't want to get proof of onward travel is to buy a single entry tourist visa from a thai consulate before you wing your way here. As a rule with a valid visa in your passport the airline won't ask for proof of onward travel