module Skellington describe CLI do let :subject do described_class.new end it 'installs bootstrap' do subject.options = { 'framework' => 'jekyll' } subject.generate 'dummy_app' expect(Dir).to exist 'dummy_app/javascripts/bootstrap' expect('dummy_app/javascripts/bootstrap.min.js').to have_content ( """ /*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under the MIT license */ """ ) expect(Dir).to exist 'dummy_app/_sass/bootstrap' expect('dummy_app/_sass/bootstrap.scss').to have_content ( """ /*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ """ ) expect('dummy_app/_sass/bootstrap-custom.scss').to have_content ( """ $brand-primary: #fa8100; """ ) expect('dummy_app/_sass/fonts.scss').to have_content ( """ @import url(http://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css); @import url(http://fonts.googleapis.com/css?family=Ubuntu+Mono); $font-family-san-serif: 'Ubuntu Mono' """ ) end end end