Sha256: 18f74c6e48a3d8ca879c0dab39d6f65f1519d7a91c83a11af7560d774aab06b1

Contents?: true

Size: 1.67 KB

Versions: 5

Compression:

Stored size: 1.67 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 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 & 2 rubygems

Version Path
middleman-sprockets-3.3.9 features/bower.feature
middleman-sprockets-3.3.8 features/bower.feature
middleman-sprockets-3.3.7 features/bower.feature
middleman-sprockets-cj-3.3.6 features/bower.feature
middleman-sprockets-3.3.6 features/bower.feature