Skip to content

Commit

Permalink
Add tests for omnibus recipe attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd committed Apr 1, 2013
1 parent 6b14006 commit 2114bed
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/recipe_spec.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2114bed

Please sign in to comment.