Sha256: 01026714a2f7f45a7986f98361ef483ec84de7473395a287ea62de96ad175c6f

Contents?: true

Size: 958 Bytes

Versions: 5

Compression:

Stored size: 958 Bytes

Contents

require 'spec_helper'

class UsageJsSpec < Less::Rails::Bootstrap::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

5 entries across 5 versions & 1 rubygems

Version Path
less-rails-bootstrap-1.4.3 test/cases/usage_js_spec.rb
less-rails-bootstrap-1.4.2 test/cases/usage_js_spec.rb
less-rails-bootstrap-1.4.1 test/cases/usage_js_spec.rb
less-rails-bootstrap-1.4 test/cases/usage_js_spec.rb
less-rails-bootstrap-1.3.3 test/cases/usage_js_spec.rb