Skip to content
Browse files

Add tests for omnibus recipe attributes.

  • Loading branch information...
1 parent 6b14006 commit 2114bedf9799e9023eca0a5716938ddeec281f6e @bernd committed
Showing with 13 additions and 0 deletions.
  1. +13 −0 spec/recipe_spec.rb
View
13 spec/recipe_spec.rb
@@ -176,6 +176,18 @@ def check_attribute(attr, value, expect = nil)
end
end
+ describe "#omnibus_package" do
+ it "can be set" do
+ check_attribute(:omnibus_package, true)
+ end
+ end
+
+ describe "#omnibus_dir" do
+ it "can be set" do
+ check_attribute(:omnibus_dir, '/foo')
+ end
+ end
+
def self.spec_recipe_attribute_list(name, list)
class_eval %Q{
describe "##{name}" do
@@ -203,6 +215,7 @@ def self.spec_recipe_attribute_list(name, list)
spec_recipe_attribute_list(:patches, %w{one two})
spec_recipe_attribute_list(:provides, %w{one two})
spec_recipe_attribute_list(:replaces, %w{one two})
+ spec_recipe_attribute_list(:omnibus_recipes, %w{one two})
describe ".source" do
it "sets a source url" do

0 comments on commit 2114bed

Please sign in to comment.
Something went wrong with that request. Please try again.