Sha256: 2820b1bcb8f2fef0be67b03af629faa6ccb2e57ae4fbf66f852cca54934edaf7

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 KB

Contents

Feature: Exception response for assets
  It's usefull when running preview server to have assets include an exception response instead of just returning a 500. These exceptions shouldn't be caught during build though so they will show up in the output.

  Background:
    Given a fixture app "base-app"
    And a file named "config.rb" with:
      """
      activate :sprockets
      """
    And a file named "source/stylesheets/site.css.scss" with:
      """
      body { color: $missing-variable; }
      """
    And a file named "source/javascripts/site.js.coffee" with:
      """
      bad:
      """

  Scenario: Preview server displays an exception in the language it was generated
    Given the Server is running

    When going to "/stylesheets/site.css" should not raise an exception
    And I should see 'Error: Undefined variable: "$missing-variable"'

    When going to "/javascripts/site.js" should not raise an exception
    And I should see 'throw Error("ExecJS::RuntimeError: SyntaxError:'


  Scenario: Exceptions are raised during build
    Given a built app
    Then the exit status should be 1

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-sprockets-4.1.1/features/test_cases/exception_response.feature
middleman-sprockets-4.1.1 features/test_cases/exception_response.feature
middleman-sprockets-4.1.0 features/test_cases/exception_response.feature
middleman-sprockets-4.0.0 features/test_cases/exception_response.feature
middleman-sprockets-4.0.0.rc.3 features/test_cases/exception_response.feature
middleman-sprockets-4.0.0.rc.2 features/test_cases/exception_response.feature