Sha256: 70c8f2b0f9b0d8806f4ab2d34ce9935c24716840e16c84e631542316fb4f7c4f
Contents?: true
Size: 999 Bytes
Versions: 4
Compression:
Stored size: 999 Bytes
Contents
require 'spec_helper' include Capybara::DSL describe 'rspec matcher' do before(:all) do include Rack::Test::Methods def app Sinatra::Application end #expected image to compare with @example_good_image = 'smiley-faceicon.png' @spec_support_root = spec_support_root @ref_path = Gatling::Configuration.reference_image_path = File.join(@spec_support_root, 'ref_path') end after(:each) do remove_refs(@ref_path) end it 'should initialize and run gatling' do save_element_for_test visit('/') @element = page.find(:css, "#smiley") @element.should look_like('smiley-faceicon.png') end it 'should initialize and run training mode when GATLING_TRAINER is toggled' do ENV['GATLING_TRAINER'] = 'true' visit('/') @element = page.find(:css, "#smiley") @element.should look_like('smiley-faceicon.png') File.exists?(File.join(@ref_path,'smiley-faceicon.png')).should be_true end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gatling-1.0.6 | spec/rspec_matcher_spec.rb |
gatling-1.0.5 | spec/rspec_matcher_spec.rb |
gatling-1.0.4 | spec/rspec_matcher_spec.rb |
gatling-1.0.3 | spec/rspec_matcher_spec.rb |