Logo: Relish

  1. Sign in

Project: Middleman-core

Text Files Without Extensions Should Build and Preview

Scenarios
Building Text Files without directory indexes
Given
a fixture app "extensionless-text-files-app"
And
a file named "config.rb" with:
And
a successfully built app at "extensionless-text-files-app"
When
I cd to "build"
Then
the following files should exist:
CNAME
LICENSE
README
Building Text Files with directory indexes
Given
a fixture app "extensionless-text-files-app"
And
a file named "config.rb" with:
activate :directory_indexes
And
a successfully built app at "extensionless-text-files-app"
When
I cd to "build"
Then
the following files should exist:
CNAME
LICENSE
README
Then
the following files should not exist:
CNAME/index.html
LICENSE/index.html
README/index.html
Previewing Text Files without directory indexes
Given
"directory_indexes" feature is "disabled"
Given
the Server is running at "extensionless-text-files-app"
When
I go to "/CNAME"
Then
I should see "test.github.com"
When
I go to "/LICENSE"
Then
I should see "You have the right to remain classy."
When
I go to "/README"
Then
I should see "Bork bork bork"
Previewing Text Files with directory indexes
Given
"directory_indexes" feature is "enabled"
Given
the Server is running at "extensionless-text-files-app"
When
I go to "/CNAME"
Then
I should see "test.github.com"
When
I go to "/LICENSE"
Then
I should see "You have the right to remain classy."
When
I go to "/README"
Then
I should see "Bork bork bork"

Last published about 5 years ago by middleman.