Sha256: 509a8562f0a830257af9a2ccd896c1c9e1c9b4d714fb337b3abe94b2ebb9a74c
Contents?: true
Size: 677 Bytes
Versions: 4
Compression:
Stored size: 677 Bytes
Contents
require File.expand_path(File.dirname(__FILE__)) + '/../support/test_sites' describe 'wbench' do sites.each_with_index do |site, index| if index == 0 it 'accepts a user agent string' do expect { WBench::Benchmark.run(sites.first, :loops => 1, :user_agent => 'a mobile browser') }.to_not raise_exception end end it "should return information from #{site} in chrome" do expect { WBench::Benchmark.run(site, :loops => 1) }.to_not raise_exception end it "should return information from #{site} in firefox" do expect { WBench::Benchmark.run(site, :browser => :firefox, :loops => 1) }.to_not raise_exception end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wbench-1.1.1 | spec/wbench/integration_spec.rb |
wbench-1.1.0 | spec/wbench/integration_spec.rb |
wbench-1.0.0 | spec/wbench/integration_spec.rb |
wbench-0.4.0 | spec/wbench/integration_spec.rb |