test/blueprint_test.rb in webbynode-blueprint-0.0.2 vs test/blueprint_test.rb in webbynode-blueprint-0.0.3
- old
+ new
@@ -3,22 +3,20 @@
class BlueprintTest < Test::Unit::TestCase
def rails_blueprint
blueprint "Rails" do |f|
f.provides "rails"
- f.parameter "version", :label => "Rails Version", :render_as => "combobox" do |p|
- p.value "2.3.2"
- p.value "2.2.2"
- p.value "2.1.2"
- end
+ f.parameter "version", :label => "Rails Version", :render_as => "combobox",
+ :values => ["2.3.2", "2.2.2", "2.1.2"]
f.parameter "doc_rdoc", :label => "Install rdoc", :render_as => "checkbox"
f.parameter "doc_ri", :label => "Install ri", :render_as => "checkbox"
f.parameter "create-dummyapp",
:label => "Create dummy app?",
:render_as => "checkbox",
:attributes => {:default => "y"}
+
f.parameter "dummyapp-path",
:label => "Path for dummy app",
:render_as => "text",
:attributes => {
"required" => "y",