Sha256: 3fdb5596e6711b3d6ce0808f56117c9f09ccc449acb3245ee2f5f90f4e495749
Contents?: true
Size: 843 Bytes
Versions: 2
Compression:
Stored size: 843 Bytes
Contents
require 'test_helper' class AudiojsTest < ActionDispatch::IntegrationTest teardown { clean_cache } test "engine is loaded" do assert_equal ::Rails::Engine, Audiojs::Rails::Engine.superclass end test "javascript is served" do get "/assets/audiojs.js" assert_response :success end test "image is served" do get "/assets/audiojs-player-graphics.gif" assert_response :success end test "flash is served" do get "/assets/audiojs.swf" assert_response :success end test "javascript contain references to graphics (image and flash)" do get "/assets/audiojs.js" assert_match "/assets/audiojs.swf", response.body assert_match "/assets/audiojs-player-graphics.gif", response.body end private def clean_cache FileUtils.rm_rf File.expand_path("../dummy/tmp", __FILE__) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
audiojs-0.1.4 | test/audiojs_test.rb |
audiojs-0.1.2 | test/audiojs_test.rb |