Sha256: a639f63047413202483edd734f3fb7b3b6436c75dc5926cc45686160aeafa4f0

Contents?: true

Size: 925 Bytes

Versions: 6

Compression:

Stored size: 925 Bytes

Contents

require 'spec_helper'

class UsageJsSpec < Bootstrap::Sass::Rails::Spec

  describe 'application.js' do

    let(:app_js) { dummy_asset('application.js') }

    it 'will render main bootstrap.js file and all included modules' do
      app_js.must_include 'bootstrap-alerts.js'
      app_js.must_include 'bootstrap-dropdown.js'
      app_js.must_include 'bootstrap-modal.js'
      app_js.must_include 'bootstrap-popover.js'
      app_js.must_include 'bootstrap-scrollspy.js'
      app_js.must_include 'bootstrap-tabs.js'
      app_js.must_include 'bootstrap-twipsy.js'
    end

    it 'must include basic js afterward' do
      app_js.must_include '$(document).ready(function(){...});'
    end

  end

  describe 'individual.css.less' do

    let(:individual_js) { dummy_asset('individual.js') }

    it 'will render bootstrap variables and mixins' do
      individual_js.must_include 'bootstrap-modal.js'
    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bootstrap-sass-rails-2.0.0.1 test/cases/usage_js_spec.rb
bootstrap-sass-rails-2.0.0.0 test/cases/usage_js_spec.rb
bootstrap-sass-rails-1.4.0.3 test/cases/usage_js_spec.rb
bootstrap-sass-rails-1.4.0.2 test/cases/usage_js_spec.rb
bootstrap-sass-rails-1.4.0.1 test/cases/usage_js_spec.rb
bootstrap-sass-rails-1.4.0 test/cases/usage_js_spec.rb