Permalink
Browse files

add negative property testing

Change-Id: I470e21f17da21c67527ef837ec7d8bebbba030e9
  • Loading branch information...
1 parent 3c3af95 commit 1b020004ed867488ec64ce63477ea26dd4a80766 @pmenglund pmenglund committed Nov 29, 2012
Showing with 6 additions and 3 deletions.
  1. +4 −2 jobs/batlight/spec
  2. +2 −1 jobs/batlight/templates/properties.erb
View
@@ -5,11 +5,13 @@ properties:
batlight.fail:
default: nope
description: Simulate failure at component
- batlight.dummy:
- description: Used to test properties without a default
+ batlight.required:
+ description: Used to test a required properties without a default
batlight.default:
default: yes
description: Used to test properties with a default that will evaluate to true
+ batlight.missing:
+ description: Used to test a missing property
templates:
batlight_ctl.erb: bin/batlight_ctl
@@ -1,5 +1,6 @@
-<%= p("batlight.dummy", "foo") %>
+<%= p("batlight.required", "required") %>
<%= p("batlight.default") %>
<% if_p("batlight.default", "batlight.fail") do |d, f| %>
both
<% end %>
+<%= p("batlight.missing") %>

0 comments on commit 1b02000

Please sign in to comment.