diff options
Diffstat (limited to 'spec/unit/provider_spec.rb')
-rwxr-xr-x | spec/unit/provider_spec.rb | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/spec/unit/provider_spec.rb b/spec/unit/provider_spec.rb index 9d781540b..629406535 100755 --- a/spec/unit/provider_spec.rb +++ b/spec/unit/provider_spec.rb @@ -3,29 +3,29 @@ require File.dirname(__FILE__) + '/../spec_helper' describe Puppet::Provider do - it "should have a specifity class method" do - Puppet::Provider.should respond_to(:specificity) - end + it "should have a specifity class method" do + Puppet::Provider.should respond_to(:specificity) + end - it "should consider two defaults to be higher specificity than one default" do - one = Class.new(Puppet::Provider) - one.initvars - one.defaultfor :operatingsystem => "solaris" + it "should consider two defaults to be higher specificity than one default" do + one = Class.new(Puppet::Provider) + one.initvars + one.defaultfor :operatingsystem => "solaris" - two = Class.new(Puppet::Provider) - two.initvars - two.defaultfor :operatingsystem => "solaris", :operatingsystemrelease => "5.10" + two = Class.new(Puppet::Provider) + two.initvars + two.defaultfor :operatingsystem => "solaris", :operatingsystemrelease => "5.10" - two.specificity.should > one.specificity - end + two.specificity.should > one.specificity + end - it "should consider a subclass more specific than its parent class" do - one = Class.new(Puppet::Provider) - one.initvars + it "should consider a subclass more specific than its parent class" do + one = Class.new(Puppet::Provider) + one.initvars - two = Class.new(one) - two.initvars + two = Class.new(one) + two.initvars - two.specificity.should > one.specificity - end + two.specificity.should > one.specificity + end end |