Sha256: df7b2d5d2bc354f6f5484e057aecd1a3431c75b0518ec1f0b48f023f5b45d54c

Contents?: true

Size: 850 Bytes

Versions: 1

Compression:

Stored size: 850 Bytes

Contents

require 'test_helper'

class BootstrapSassRtlTest < ActionDispatch::IntegrationTest
  teardown { clean_cache }

  test "engine is loaded" do
    assert_equal ::Rails::Engine, Bootstrap::Sass::Rtl::Engine.superclass
  end

  test "bootstrap.css inside bootstrap-rtl is served" do
    get "/assets/bootstrap-rtl/bootstrap.css"
    assert_response :success
  end

  test "responsive.css within bootstrap-rtl is served" do
    get "/assets/bootstrap-rtl/responsive.css"
    assert_response :success
  end

  test "bootstrap-rtl.css is served" do
    get "/assets/bootstrap-rtl.css"
    assert_response :success
  end

  test "bootstrap-responsive-rtl.css is served" do
    get "/assets/bootstrap-responsive-rtl.css"
    assert_response :success
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bootstrap-sass-rtl-2.3.2.0 test/bootstrap_sass_rtl_test.rb