Sha256: e99becb237d433ca7b0ac52d12edde9a1123aa82ec5d169c66da1fbb6316fedd
Contents?: true
Size: 642 Bytes
Versions: 9
Compression:
Stored size: 642 Bytes
Contents
require 'test_helper' class EventTrackingBattleTest < ActionDispatch::IntegrationTest test "battle pick image" do VCR.use_cassette('battle_images_events') do browser_start Lentil::ThisorthatController.stubs(:get_images).returns([lentil_images(:one), lentil_images(:uno)]) visit lentil.thisorthat_battle_path first_image = all('.battle-form').first() image_id = first_image['value'] first_image.click assert_equal("_trackEvent,battle_view,pick,#{image_id}", console_message) find('.battle-result-arrow-wrap') # this should wait for the ajax to finish browser_end end end end
Version data entries
9 entries across 9 versions & 1 rubygems