diff --git a/features/partials.feature b/features/partials.feature index af9a2a27..fad4ff0c 100644 --- a/features/partials.feature +++ b/features/partials.feature @@ -32,4 +32,10 @@ Feature: Provide Sane Defaults for Partial Behavior Scenario: Partials can be passed locals Given the Server is running at "partials-app" When I go to "/locals.html" - Then I should see "Local var is bar" \ No newline at end of file + Then I should see "Local var is bar" + + Scenario: Partial and Layout use different engines + Given the Server is running at "different-engine-partial" + When I go to "/index.html" + Then I should see "ERb Main" + And I should see "Slim Footer" diff --git a/fixtures/different-engine-partial/config.rb b/fixtures/different-engine-partial/config.rb new file mode 100644 index 00000000..e69de29b diff --git a/fixtures/different-engine-partial/source/index.html.erb b/fixtures/different-engine-partial/source/index.html.erb new file mode 100644 index 00000000..9f7cda8e --- /dev/null +++ b/fixtures/different-engine-partial/source/index.html.erb @@ -0,0 +1 @@ +Index \ No newline at end of file diff --git a/fixtures/different-engine-partial/source/layouts/layout.erb b/fixtures/different-engine-partial/source/layouts/layout.erb new file mode 100644 index 00000000..3065c6b2 --- /dev/null +++ b/fixtures/different-engine-partial/source/layouts/layout.erb @@ -0,0 +1,4 @@ +<%= partial 'shared/erb' %> +<%= partial 'shared/footer' %> + +<% yield %> \ No newline at end of file diff --git a/fixtures/different-engine-partial/source/shared/_erb.erb b/fixtures/different-engine-partial/source/shared/_erb.erb new file mode 100644 index 00000000..8003e446 --- /dev/null +++ b/fixtures/different-engine-partial/source/shared/_erb.erb @@ -0,0 +1 @@ +ERb Main \ No newline at end of file diff --git a/fixtures/different-engine-partial/source/shared/_footer.slim b/fixtures/different-engine-partial/source/shared/_footer.slim new file mode 100644 index 00000000..f80deb9e --- /dev/null +++ b/fixtures/different-engine-partial/source/shared/_footer.slim @@ -0,0 +1 @@ +footer Slim Footer \ No newline at end of file