test/integration/inventory_test.rb in cogy-0.4.0 vs test/integration/inventory_test.rb in cogy-0.5.0
- old
+ new
@@ -30,11 +30,12 @@
def test_commands_section
with_config(bundle: { cogy_executable: "/bin/no" }) do |inv|
expected = {
"executable" => "/bin/no",
"description" => "Print a foo",
- "rules" => ["allow"]
+ "rules" => ["allow"],
+ "env_vars" => { "COGY_BACKEND" => "http://www.example.com/cogy" }
}
assert_equal expected, inv["commands"]["say_foo"]
end
end
@@ -49,11 +50,9 @@
get "/cogy/inventory"
assert_equal "application/x-yaml", response.content_type
end
def test_template
- get "/cogy/inventory"
-
expected = <<TEMPLATE.strip
**foo:** ~$results[0].name~
~br~