Feature: Middleman-Remover Scenario: Remover dosen't delete file Given a fixture app "basic-app" And a file named "config.rb" with: """ configure :build do activate :remover end """ And a file named "source/empty" with: """ """ And a successfully built app at "basic-app" When I cd to "build" Then a file named "empty" should exist Scenario: Removed Message Given a fixture app "basic-app" And a file named "config.rb" with: """ configure :build do activate :remover, :paths => %w(empty) end """ And a file named "source/empty" with: """ """ And a successfully built app at "basic-app" When I cd to "build" Then a file named "empty" should not exist And the output should contain "== middleman-remover:" And the output should contain "is removed ==" Scenario: Removed Message using block Given a fixture app "basic-app" And a file named "config.rb" with: """ configure :build do activate :remover do |r| r.paths = %w(empty) end end """ And a file named "source/empty" with: """ """ And a successfully built app at "basic-app" When I cd to "build" Then a file named "empty" should not exist And the output should contain "== middleman-remover:" And the output should contain "is removed ==" Scenario: File not exist Message Given a fixture app "basic-app" And a file named "config.rb" with: """ configure :build do activate :remover, :paths => %w(empty) end """ And a successfully built app at "basic-app" When I cd to "build" Then the output should contain "== middleman-remover:" And the output should contain "is not exist ==" Scenario: Directory not exist Message Given a fixture app "basic-app" And a file named "config.rb" with: """ configure :build do activate :remover, :paths => %w(dir) end """ And a successfully built app at "basic-app" When I cd to "build" Then the output should contain "== middleman-remover:" And the output should contain "is not exist ==" Scenario: Remove file Given a fixture app "basic-app" And a file named "config.rb" with: """ configure :build do activate :remover, :paths => %w(empty) end """ And a file named "source/empty" with: """ """ And a successfully built app at "basic-app" When I cd to "build" Then a file named "empty" should not exist Scenario: Remove Directory Given a fixture app "basic-app" And a file named "config.rb" with: """ configure :build do activate :remover, :paths => %w(dir) end """ And a directory named "source/dir" And a file named "source/dir/empty" with: """ """ And a successfully built app at "basic-app" When I cd to "build" Then a directory named "dir" should not exist Scenario: Remove file with WILDCARD Given a fixture app "basic-app" And a file named "config.rb" with: """ configure :build do activate :remover, :paths => %w(dir/*) end """ And a directory named "source/dir" And a file named "source/dir/empty" with: """ """ And a file named "source/dir/something.html" with: """