To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorIgnoring paths
- Scenarios
-
- Ignore a single path (build)
- Ignore a single path (server)
- Ignore a globbed path (build)
- Ignore a globbed path (server)
- Ignore a regex (build)
- Ignore a regex (server)
- Ignore with directory indexes (source file, build)
- Ignore with directory indexes (source file, server)
- Ignore with directory indexes (output path splat, build)
- Ignore with directory indexes (output path splat, server)
- Ignore a single path (build)
-
- Given
- a fixture app "ignore-app"
- And
-
a file named "config.rb" with:
ignore 'about.html.erb' ignore 'plain.html'
- And
- a successfully built app at "ignore-app"
- Then
-
the following files should exist:
build/index.html - And
-
the following files should not exist:
build/plain.html build/about.html
- Ignore a single path (server)
-
- Given
- a fixture app "ignore-app"
- And
-
a file named "config.rb" with:
ignore 'about.html.erb' ignore 'plain.html'
- And
- the Server is running
- When
- I go to "/index.html"
- Then
- I should not see "File Not Found"
- When
- I go to "/plain.html"
- Then
- I should see "File Not Found"
- When
- I go to "/about.html"
- Then
- I should see "File Not Found"
- Ignore a globbed path (build)
-
- Given
- a fixture app "ignore-app"
- And
-
a file named "config.rb" with:
ignore '*.erb' ignore 'reports/*' ignore 'images/**/*.png'
- And
- a successfully built app at "ignore-app"
- Then
-
the following files should exist:
build/plain.html build/images/portrait.jpg build/images/pic.png - And
-
the following files should not exist:
build/about.html build/index.html build/reports/index.html build/reports/another.html build/images/icons/messages.png
- Ignore a globbed path (server)
-
- Given
- a fixture app "ignore-app"
- And
-
a file named "config.rb" with:
ignore '*.erb' ignore 'reports/*' ignore 'images/**/*.png'
- And
- the Server is running
- When
- I go to "/plain.html"
- Then
- I should not see "File Not Found"
- When
- I go to "/images/portrait.jpg"
- Then
- I should not see "File Not Found"
- When
- I go to "/images/pic.png"
- Then
- I should not see "File Not Found"
- When
- I go to "/about.html"
- Then
- I should see "File Not Found"
- When
- I go to "/index.html"
- Then
- I should see "File Not Found"
- When
- I go to "/reports/index.html"
- Then
- I should see "File Not Found"
- When
- I go to "/reports/another.html"
- Then
- I should see "File Not Found"
- When
- I go to "/images/icons/messages.png"
- Then
- I should see "File Not Found"
- Ignore a regex (build)
-
- Given
- a fixture app "ignore-app"
- And
-
a file named "config.rb" with:
ignore /^.*\.erb/ ignore /^reports\/.*/ ignore /^images\.*\.png/
- And
- a successfully built app at "ignore-app"
- Then
-
the following files should exist:
build/plain.html build/images/portrait.jpg build/images/pic.png - And
-
the following files should not exist:
build/about.html build/index.html build/reports/index.html build/reports/another.html build/images/icons/messages.png
- Ignore a regex (server)
-
- Given
- a fixture app "ignore-app"
- And
-
a file named "config.rb" with:
ignore /^.*\.erb/ ignore /^reports\/.*/ ignore /^images\.*\.png/
- And
- the Server is running
- When
- I go to "/plain.html"
- Then
- I should not see "File Not Found"
- When
- I go to "/images/portrait.jpg"
- Then
- I should not see "File Not Found"
- When
- I go to "/images/pic.png"
- Then
- I should not see "File Not Found"
- When
- I go to "/about.html"
- Then
- I should see "File Not Found"
- When
- I go to "/index.html"
- Then
- I should see "File Not Found"
- When
- I go to "/reports/index.html"
- Then
- I should see "File Not Found"
- When
- I go to "/reports/another.html"
- Then
- I should see "File Not Found"
- When
- I go to "/images/icons/messages.png"
- Then
- I should see "File Not Found"
- Ignore with directory indexes (source file, build)
-
- Given
- a fixture app "ignore-app"
- And
-
a file named "config.rb" with:
activate :directory_indexes ignore 'about.html.erb' ignore 'plain.html'
- And
- a successfully built app at "ignore-app"
- Then
-
the following files should exist:
build/index.html - And
-
the following files should not exist:
build/about/index.html build/plain/index.html
- Ignore with directory indexes (source file, server)
-
- Given
- a fixture app "ignore-app"
- And
-
a file named "config.rb" with:
activate :directory_indexes ignore 'about.html.erb' ignore 'plain.html'
- And
- the Server is running
- When
- I go to "/index.html"
- Then
- I should not see "File Not Found"
- When
- I go to "/about/index.html"
- Then
- I should see "File Not Found"
- When
- I go to "/plain/index.html"
- Then
- I should see "File Not Found"
- Ignore with directory indexes (output path splat, build)
-
- Given
- a fixture app "ignore-app"
- And
-
a file named "config.rb" with:
activate :directory_indexes ignore 'about*' ignore 'plain*'
- And
- a successfully built app at "ignore-app"
- Then
-
the following files should exist:
build/index.html - And
-
the following files should not exist:
build/about/index.html build/plain/index.html
- Ignore with directory indexes (output path splat, server)
-
- Given
- a fixture app "ignore-app"
- And
-
a file named "config.rb" with:
activate :directory_indexes ignore 'about*' ignore 'plain*'
- And
- the Server is running
- When
- I go to "/index.html"
- Then
- I should not see "File Not Found"
- When
- I go to "/about/index.html"
- Then
- I should see "File Not Found"
- When
- I go to "/plain/index.html"
- Then
- I should see "File Not Found"
Last published over 7 years ago by middleman.