Sha256: ff83e15c9bfa9a35b3cabb091dc44ab1b52317e027a691ab9d5c68f8b11354b5

Contents?: true

Size: 859 Bytes

Versions: 6

Compression:

Stored size: 859 Bytes

Contents

module Skellington
  describe CLI do
    let :subject do
      described_class.new
    end

    it 'creates a libs data file' do
      subject.options = { 'framework' => 'jekyll' }
      subject.generate 'dummy-app'

      expect(Dir).to exist 'dummy_app/_data'
      expect('dummy_app/_data/libs.yml').to have_content (
      """
      js:
        - name: jquery
          url:  //ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
        - name: bootstrap
          url:  //maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js

      css:
        - name: foo
          bar:  //bar.com/baz.css

      fonts:
        - name: fontawesome
          url:  //maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css
        - name: ubuntu
          url:  //fonts.googleapis.com/css?family=Ubuntu+Mono
      """
      )
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
skellington-0.8.9 spec/jekyll/data/libs_spec.rb
skellington-0.8.8 spec/jekyll/data/libs_spec.rb
skellington-0.8.7 spec/jekyll/data/libs_spec.rb
skellington-0.8.6 spec/jekyll/data/libs_spec.rb
skellington-0.8.5 spec/jekyll/data/libs_spec.rb
skellington-0.8.4 spec/jekyll/data/libs_spec.rb