Sha256: 7ad64b67fd2668e1a614b506e92d1d57978c23b2555f710a9f909e3f1eb4b1a1

Contents?: true

Size: 604 Bytes

Versions: 31

Compression:

Stored size: 604 Bytes

Contents

Feature: Don't allow template locals to overwrite template helpers

  Scenario: Normal Template
    Given an empty app
    And a file named "config.rb" with:
      """
      class TestExt < ::Middleman::Extension
        expose_to_template foo: :foo

        def foo
          "bar"
        end
      end

      ::Middleman::Extensions.register :test, TestExt

      activate :test

      page "/index.html", locals: { foo: false }
      """
    And a file named "source/index.html.erb" with:
      """
      <%= foo %>
      """
    Given a built app at "empty_app"
    Then the exit status should be 1

Version data entries

31 entries across 31 versions & 3 rubygems

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