Microsoft recently made the Windows 10 upgrade a recommended one meaning if your settings in Windows updates is set to automatically install then you will automatically upgrade to Windows 10.
Here's a few tips from Winbeta.com on how to avoid an unwanted upgrade:
Reference
automaticinstall
control panel
pc settings
recommended update
security updates
settings
software management
system maintenance
tech support
update control
update notifications
update tips
upgrade
upgrade process
user guide
windows 10
windows 7
windows 8.1
windows update
For Windows 10 beta testers there’s slightly less control because the final version of Windows 10 will automatically download and install automatically for these users. This is also great news apart from one significant unknown: the ability to downgrade...
I have Windows 7 Ultimate and I have my Windows Update settings set to "Download updates but let me choose whether to install them." The reason I use this setting is because even though I usually install the updates (because mostly they improve things), sometimes I'll see an update that I know...