Skip to content

Instantly share code, notes, and snippets.

@rhargreaves
Last active June 28, 2016 10:44
Show Gist options
  • Save rhargreaves/f28af1d07bd5382d02d588c7732be966 to your computer and use it in GitHub Desktop.
Save rhargreaves/f28af1d07bd5382d02d588c7732be966 to your computer and use it in GitHub Desktop.
SPA 2016: Acceptance Test - Site Loads Under 2 Seconds
it 'loads the page fully in under 2 seconds' do
stopwatch = Stopwatch.new
visit @site_url
expect(stopwatch.elapsed_time).to be < 2
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment