Sha256: 7137c373257aa7fdf156dec1f40e08058e3ea0d762e157b43cd45aac7fa961ca

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 KB

Contents

Feature: Sprockets JST & EJS

  Background:
    Given a fixture app "base-app"
    And a file named "config.rb" with:
      """
      activate :sprockets
      """
    And a file named "source/javascripts/templates.js" with:
      """
      //= require_tree "./_templates"
      """
    And a file named "source/javascripts/_templates/test.jst.ejs" with:
      """
      <%= 'hello' %>
      """
    And a file named "source/javascripts/_templates/test2.jst.eco" with:
      """
      <%= 'world' %>
      """

  Scenario: Serving .ejs & .eco
    Given the Server is running

    When I go to "/javascripts/templates.js"
    Then I should see '["_templates/test"] = function'
    And I should see '["_templates/test2"] = function'


  Scenario: Building .ejs & .eco
    Given a successfully built app

    When I cd to "build"
    Then a file named "javascripts/templates.js" should exist
    And the file "javascripts/templates.js" should contain '["_templates/test"] = function'
    And the file "javascripts/templates.js" should contain '["_templates/test2"] = function'

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/jst.feature
middleman-sprockets-4.1.1 features/test_cases/jst.feature
middleman-sprockets-4.1.0 features/test_cases/jst.feature
middleman-sprockets-4.0.0 features/test_cases/jst.feature
middleman-sprockets-4.0.0.rc.3 features/test_cases/jst.feature
middleman-sprockets-4.0.0.rc.2 features/test_cases/jst.feature