Sha256: 68f657fdc9a38040ccba7b325147ef2d7b597ecb51bf546698b26aa9ff7c16b0

Contents?: true

Size: 966 Bytes

Versions: 42

Compression:

Stored size: 966 Bytes

Contents

# encoding: iso-8859-1
Feature: encoding option

  Scenario: No encoding set
    Given a fixture app "clean-app"
    Given the Server is running at "clean-app"

    When I go to "/index.html"
    Then the "Content-Type" header should contain "text/html"
    Then the "Content-Type" header should contain "charset=utf-8"

  @wip
  Scenario: Custom encoding set
    Given a fixture app "i-8859-1-app"
    And a file named "config.rb" with:
      """
      set :encoding, "ISO-8859-1"

      ::Rack::Mime::MIME_TYPES['.html'] = 'text/html; charset=iso-8859-1'
      ::Rack::Mime::MIME_TYPES['.htm'] = 'text/html; charset=iso-8859-1'
      ::Rack::Mime::MIME_TYPES['.map'] = 'application/json; charset=iso-8859-1'
      """
    Given the Server is running at "i-8859-1-app"

    When I go to "/index.html"
    Then the "Content-Type" header should contain "text/html"
    Then the "Content-Type" header should contain "charset=iso-8859-1"
    Then I should see "äöü"

Version data entries

42 entries across 42 versions & 3 rubygems

Version Path
middleman-core-4.6.0 features/encoding_option.feature
middleman-core-4.5.1 features/encoding_option.feature
middleman-core-4.5.0 features/encoding_option.feature
middleman-core-4.4.3 features/encoding_option.feature
middleman-core-4.4.2 features/encoding_option.feature
middleman-core-4.4.0 features/encoding_option.feature
middleman-core-4.3.11 features/encoding_option.feature
middleman-core-4.3.10 features/encoding_option.feature
middleman-core-4.3.8 features/encoding_option.feature
middleman-core-4.3.7 features/encoding_option.feature
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-core-4.3.3/features/encoding_option.feature
middleman-core-4.3.6 features/encoding_option.feature
middleman-core-4.3.5 features/encoding_option.feature
middleman-core-4.3.4 features/encoding_option.feature
middleman-core-4.3.3 features/encoding_option.feature
middleman-core-4.3.2 features/encoding_option.feature
middleman-core-4.3.1 features/encoding_option.feature
middleman-core-4.3.0 features/encoding_option.feature
middleman-core-4.3.0.rc.4 features/encoding_option.feature
middleman-core-4.3.0.rc.3 features/encoding_option.feature