test/integration/lentil/images_show_test.rb in lentil-0.3.1 vs test/integration/lentil/images_show_test.rb in lentil-0.4.0

- old
+ new

@@ -1,14 +1,16 @@ require 'test_helper' class ImagesShowIndexTest < ActionDispatch::IntegrationTest - setup do - visit(lentil.image_path lentil_images(:one)) - end - # This is important otherwise there is some strange reloading that goes on test "should have a class on the body" do + visit(lentil.image_path lentil_images(:one)) assert page.has_selector?('body.lentil-images_show') end + + test "video should have a video tag" do + visit(lentil.image_path lentil_images(:video)) + assert page.has_selector?('video') + end -end \ No newline at end of file +end