Sha256: 57890190ba3bd6b14bede59184f82f2e73891c07777d54afaa3f2219bea361c4

Contents?: true

Size: 498 Bytes

Versions: 3

Compression:

Stored size: 498 Bytes

Contents

require 'test_helper'

class ReadmorejsRailsTest < ActionDispatch::IntegrationTest
  teardown { clean_sprockets_cache }

  test "engine" do
    assert_equal ::Rails::Engine, Readmorejs::Rails::Engine.superclass
  end

  test "javascripts are available" do
    get "/assets/readmore.js"
    assert_response :success
    get "/assets/readmore.min.js"
    assert_response :success
  end

  private

  def clean_sprockets_cache
    FileUtils.rm_rf File.expand_path("../dummy/tmp",  __FILE__)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
readmorejs-rails-0.0.12 test/readmorejs_rails_test.rb
readmorejs-rails-0.0.11 test/readmorejs_rails_test.rb
readmorejs-rails-0.0.1 test/readmorejs_rails_test.rb