middleman/middleman-core/lib/middleman-core/step_definitions/builder_steps.rb

32 lines
874 B
Ruby
Raw Normal View History

require 'fileutils'
Before do
@modification_times = Hash.new
end
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`}
end
2011-12-16 01:33:09 +01:00
Given /^was successfully built$/ do
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}
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}
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}`}
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}
end