2011-11-29 23:17:07 +01:00
|
|
|
require 'fileutils'
|
|
|
|
|
2013-03-04 03:13:41 +01:00
|
|
|
Before do
|
|
|
|
@modification_times = Hash.new
|
|
|
|
end
|
|
|
|
|
2011-12-16 01:05:15 +01:00
|
|
|
Given /^a built app at "([^\"]*)"$/ do |path|
|
|
|
|
step %Q{a fixture app "#{path}"}
|
2014-07-08 04:43:22 +02:00
|
|
|
step %Q{I run `middleman build --verbose`}
|
2011-11-29 23:17:07 +01:00
|
|
|
end
|
|
|
|
|
2011-12-16 01:33:09 +01:00
|
|
|
Given /^was successfully built$/ do
|
2015-12-13 22:59:44 +01:00
|
|
|
step %Q{the output should contain "Project built successfully."}
|
2011-12-16 01:33:09 +01:00
|
|
|
step %Q{the exit status should be 0}
|
2014-07-08 04:43:22 +02:00
|
|
|
step %Q{a directory named "build" should exist}
|
2011-11-29 23:17:07 +01:00
|
|
|
end
|
|
|
|
|
2011-12-16 01:33:09 +01:00
|
|
|
Given /^a successfully built app at "([^\"]*)"$/ do |path|
|
|
|
|
step %Q{a built app at "#{path}"}
|
|
|
|
step %Q{was successfully built}
|
2011-11-29 23:17:07 +01:00
|
|
|
end
|
|
|
|
|
2011-12-16 01:33:09 +01:00
|
|
|
Given /^a built app at "([^\"]*)" with flags "([^\"]*)"$/ do |path, flags|
|
|
|
|
step %Q{a fixture app "#{path}"}
|
|
|
|
step %Q{I run `middleman build #{flags}`}
|
2011-12-12 00:49:13 +01:00
|
|
|
end
|
|
|
|
|
2011-12-16 01:33:09 +01:00
|
|
|
Given /^a successfully built app at "([^\"]*)" with flags "([^\"]*)"$/ do |path, flags|
|
|
|
|
step %Q{a built app at "#{path}" with flags "#{flags}"}
|
|
|
|
step %Q{was successfully built}
|
2011-12-12 00:49:13 +01:00
|
|
|
end
|