Sha256: 8af5dfb3871e75f18cc6cfea7372d6a4abb89c2a0b8fb4cb5a9af4ad49cf9c84

Contents?: true

Size: 1.95 KB

Versions: 44

Compression:

Stored size: 1.95 KB

Contents

Feature: Relative Assets
  In order easily switch between relative and absolute paths
    
  Scenario: Rendering css with the feature disabled
    Given "relative_assets" feature is "disabled"
    And the Server is running at "test-app"
    When I go to "/stylesheets/relative_assets.css"
    Then I should not see "url('../"
    And I should see "/images/blank.gif"
    
  Scenario: Rendering html with the feature disabled
    Given "relative_assets" feature is "disabled"
    And the Server is running at "test-app"
    When I go to "/relative_image.html"
    Then I should see "/images/blank.gif"

  Scenario: Rendering css with the feature enabled
    Given "relative_assets" feature is "enabled"
    And the Server is running at "test-app"
    When I go to "/stylesheets/relative_assets.css"
    Then I should see "url('../images/blank.gif"
    
  Scenario: Rendering html with the feature enabled
    Given "relative_assets" feature is "enabled"
    And the Server is running at "test-app"
    When I go to "/relative_image.html"
    Then I should not see "/images/blank.gif"
    And I should see "images/blank.gif"
    
  Scenario: Rendering html with a custom images_dir
    Given "relative_assets" feature is "enabled"
    And "images_dir" is set to "img"
    And the Server is running at "test-app"
    When I go to "/stylesheets/relative_assets.css"
    Then I should see "url('../img/blank.gif"
    
  Scenario: Rendering css with a custom images_dir
    Given "relative_assets" feature is "enabled"
    And "images_dir" is set to "img"
    And the Server is running at "test-app"
    When I go to "/relative_image.html"
    Then I should not see "/images/blank.gif"
    Then I should not see "/img/blank.gif"
    And I should see "img/blank.gif"
    
  Scenario: Rendering scss with the feature enabled
    Given "relative_assets" feature is "enabled"
    And the Server is running at "fonts-app"
    When I go to "/stylesheets/fonts.css"
    Then I should see "url('../fonts/StMarie"

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
middleman-2.0.16.1-x86-mingw32 features/relative_assets.feature
middleman-2.0.16.1 features/relative_assets.feature
middleman-2.0.16-x86-mingw32 features/relative_assets.feature
middleman-2.0.16 features/relative_assets.feature
middleman-2.0.15.4-x86-mingw32 features/relative_assets.feature
middleman-2.0.15.4 features/relative_assets.feature
middleman-2.0.15.3-x86-mingw32 features/relative_assets.feature
middleman-2.0.15.3 features/relative_assets.feature
middleman-2.0.15.2-x86-mingw32 features/relative_assets.feature
middleman-2.0.15.2 features/relative_assets.feature
middleman-2.0.15.1-x86-mingw32 features/relative_assets.feature
middleman-2.0.15.1 features/relative_assets.feature
middleman-2.0.15-x86-mingw32 features/relative_assets.feature
middleman-2.0.15 features/relative_assets.feature
middleman-3.0.0.alpha.6 features/relative_assets.feature
middleman-3.0.0.alpha.5 features/relative_assets.feature
middleman-3.0.0.alpha.4 features/relative_assets.feature
middleman-3.0.0.alpha.3 features/relative_assets.feature
middleman-3.0.0.alpha.2 features/relative_assets.feature
middleman-2.0.14-x86-mingw32 features/relative_assets.feature