Disable inline minification by default, allow it to be turned on with an option

This commit is contained in:
Ben Hollis 2012-04-25 23:41:09 -07:00
parent 9a7fd0f8d4
commit ce9b99ce44
4 changed files with 28 additions and 12 deletions

View file

@ -12,6 +12,14 @@ Given /^"([^\"]*)" feature is "([^\"]*)"$/ do |feature, state|
end
end
Given /^"([^\"]*)" feature is "enabled" with "([^\"]*)"$/ do |feature, options_str|
@initialize_commands ||= []
options = eval("{#{options_str}}")
@initialize_commands << lambda { activate(feature.to_sym, options) }
end
Given /^"([^\"]*)" is set to "([^\"]*)"$/ do |variable, value|
@initialize_commands ||= []
@initialize_commands << lambda { set(variable.to_sym, value) }