Merge pull request #392 from bhollis/minify

Disable inline minification by default, allow it to be turned on with an option
This commit is contained in:
Thomas Reynolds 2012-04-26 10:52:48 -07:00
commit 1e271448fa
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) }