Sha256: 7e20c09c74de2bf27d87245e3060886bf7e4fe0c5734a01584ea89ddd0dab835

Contents?: true

Size: 1.91 KB

Versions: 5

Compression:

Stored size: 1.91 KB

Contents

Feature: Bower
  Scenario: Sprockets can pull underscore from bower
    Given the Server is running at "bower-app"
    When I go to "/javascripts/application.js"
    Then I should see "return _;"

  Scenario: Sprockets can build underscore from bower
    Given a successfully built app at "bower-app"
    When I cd to "build"
    Then the following files should exist:
      | javascripts/application.js |
    And the file "javascripts/application.js" should contain "return _;"

  Scenario: Sprockets should not mess with bower.json
    Given a successfully built app at "bower-json-app"
    When I cd to "build"
    Then the following files should exist:
      | javascripts/bower.json |
    And the file "javascripts/bower.json" should contain '"name": "my-project",'

  Scenario: Assets can be added to the build with import_asset from bower dir
    Given a successfully built app at "bower-app"
    When I cd to "build"
    Then a file named "javascripts/underscore/underscore.js" should exist

  Scenario: Multiple assets can be added to the build with import_asset from bower dir and are placed in the correct directory
    Given a successfully built app at "bower-multiple-assets-app"
    When I cd to "build"
    Then a file named "images/lightbox2/img/close.png" should exist
    Then a file named "javascripts/lightbox2/js/lightbox.js" should exist

  Scenario: Assets which haven't been imported don't appear in output directory
    Given a successfully built app at "bower-multiple-assets-app"
    When I cd to "build"
    Then a file named "images/lightbox2/img/open.png" should not exist

  Scenario: Assets can have an individual output directory
    Given a successfully built app at "bower-individual-outputdir-app"
    When I cd to "build"
    Then a file named "underscore.js" should exist
    And a file named "hello_world/lightbox2/img/close.png" should exist
    And a file named "javascripts/lightbox2/js/lightbox.js" should exist

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
middleman-sprockets-3.5.0 features/bower.feature
middleman-sprockets-4.0.0.beta.1 features/bower.feature
middleman-sprockets-3.4.2 features/bower.feature
middleman-sprockets-3.4.1 features/bower.feature
middleman-sprockets-3.3.10 features/bower.feature