On 28 January 2011 18:44, Daniel Pittman <dan...@puppetlabs.com> wrote: > From: Daniel Pittman <dan...@rimspace.net> > > Rename all the spec tests to follow the rspec convention of *_spec.rb rather > than unadorned *.rb; this also makes it easier to work with them consistently > without using the Rakefile support that customizes that.
+1 > --- > Rakefile | 4 ++-- > spec/integration/{facter.rb => facter_spec.rb} | 0 > spec/unit/{facter.rb => facter_spec.rb} | 0 > spec/unit/{interfaces.rb => interfaces_spec.rb} | 0 > ...{operatingsystem.rb => operatingsystem_spec.rb} | 0 > ...emrelease.rb => operatingsystemrelease_spec.rb} | 0 > spec/unit/{selinux.rb => selinux_spec.rb} | 0 > spec/unit/{uptime.rb => uptime_spec.rb} | 0 > .../util/{collection.rb => collection_spec.rb} | 0 > spec/unit/util/{confine.rb => confine_spec.rb} | 0 > spec/unit/util/{fact.rb => fact_spec.rb} | 0 > spec/unit/util/{ip.rb => ip_spec.rb} | 0 > spec/unit/util/{loader.rb => loader_spec.rb} | 0 > .../util/{macaddress.rb => macaddress_spec.rb} | 0 > spec/unit/util/{macosx.rb => macosx_spec.rb} | 0 > .../util/{manufacturer.rb => manufacturer_spec.rb} | 0 > .../util/{resolution.rb => resolution_spec.rb} | 0 > spec/unit/util/{uptime.rb => uptime_spec.rb} | 0 > spec/unit/util/{virtual.rb => virtual_spec.rb} | 0 > spec/unit/util/{vlans.rb => vlans_spec.rb} | 0 > .../util/{xendomains.rb => xendomains_spec.rb} | 0 > spec/unit/{virtual.rb => virtual_spec.rb} | 0 > 22 files changed, 2 insertions(+), 2 deletions(-) > rename spec/integration/{facter.rb => facter_spec.rb} (100%) > rename spec/unit/{facter.rb => facter_spec.rb} (100%) > rename spec/unit/{interfaces.rb => interfaces_spec.rb} (100%) > rename spec/unit/{operatingsystem.rb => operatingsystem_spec.rb} (100%) > rename spec/unit/{operatingsystemrelease.rb => > operatingsystemrelease_spec.rb} (100%) > rename spec/unit/{selinux.rb => selinux_spec.rb} (100%) > rename spec/unit/{uptime.rb => uptime_spec.rb} (100%) > rename spec/unit/util/{collection.rb => collection_spec.rb} (100%) > rename spec/unit/util/{confine.rb => confine_spec.rb} (100%) > rename spec/unit/util/{fact.rb => fact_spec.rb} (100%) > rename spec/unit/util/{ip.rb => ip_spec.rb} (100%) > rename spec/unit/util/{loader.rb => loader_spec.rb} (100%) > rename spec/unit/util/{macaddress.rb => macaddress_spec.rb} (100%) > rename spec/unit/util/{macosx.rb => macosx_spec.rb} (100%) > rename spec/unit/util/{manufacturer.rb => manufacturer_spec.rb} (100%) > rename spec/unit/util/{resolution.rb => resolution_spec.rb} (100%) > rename spec/unit/util/{uptime.rb => uptime_spec.rb} (100%) > rename spec/unit/util/{virtual.rb => virtual_spec.rb} (100%) > rename spec/unit/util/{vlans.rb => vlans_spec.rb} (100%) > rename spec/unit/util/{xendomains.rb => xendomains_spec.rb} (100%) > rename spec/unit/{virtual.rb => virtual_spec.rb} (100%) > > diff --git a/Rakefile b/Rakefile > index 9b79613..9d7d906 100644 > --- a/Rakefile > +++ b/Rakefile > @@ -63,12 +63,12 @@ task :default do > end > > RSpec::Core::RakeTask.new do |t| > - t.pattern ='spec/{unit,integration}/**/*.rb' > + t.pattern ='spec/{unit,integration}/**/*_spec.rb' > t.fail_on_error = false > end > > RSpec::Core::RakeTask.new('spec:rcov') do |t| > - t.pattern ='spec/{unit,integration}/**/*.rb' > + t.pattern ='spec/{unit,integration}/**/*_spec.rb' > t.fail_on_error = false > if defined?(Rcov) > t.rcov = true > diff --git a/spec/integration/facter.rb b/spec/integration/facter_spec.rb > similarity index 100% > rename from spec/integration/facter.rb > rename to spec/integration/facter_spec.rb > diff --git a/spec/unit/facter.rb b/spec/unit/facter_spec.rb > similarity index 100% > rename from spec/unit/facter.rb > rename to spec/unit/facter_spec.rb > diff --git a/spec/unit/interfaces.rb b/spec/unit/interfaces_spec.rb > similarity index 100% > rename from spec/unit/interfaces.rb > rename to spec/unit/interfaces_spec.rb > diff --git a/spec/unit/operatingsystem.rb b/spec/unit/operatingsystem_spec.rb > similarity index 100% > rename from spec/unit/operatingsystem.rb > rename to spec/unit/operatingsystem_spec.rb > diff --git a/spec/unit/operatingsystemrelease.rb > b/spec/unit/operatingsystemrelease_spec.rb > similarity index 100% > rename from spec/unit/operatingsystemrelease.rb > rename to spec/unit/operatingsystemrelease_spec.rb > diff --git a/spec/unit/selinux.rb b/spec/unit/selinux_spec.rb > similarity index 100% > rename from spec/unit/selinux.rb > rename to spec/unit/selinux_spec.rb > diff --git a/spec/unit/uptime.rb b/spec/unit/uptime_spec.rb > similarity index 100% > rename from spec/unit/uptime.rb > rename to spec/unit/uptime_spec.rb > diff --git a/spec/unit/util/collection.rb b/spec/unit/util/collection_spec.rb > similarity index 100% > rename from spec/unit/util/collection.rb > rename to spec/unit/util/collection_spec.rb > diff --git a/spec/unit/util/confine.rb b/spec/unit/util/confine_spec.rb > similarity index 100% > rename from spec/unit/util/confine.rb > rename to spec/unit/util/confine_spec.rb > diff --git a/spec/unit/util/fact.rb b/spec/unit/util/fact_spec.rb > similarity index 100% > rename from spec/unit/util/fact.rb > rename to spec/unit/util/fact_spec.rb > diff --git a/spec/unit/util/ip.rb b/spec/unit/util/ip_spec.rb > similarity index 100% > rename from spec/unit/util/ip.rb > rename to spec/unit/util/ip_spec.rb > diff --git a/spec/unit/util/loader.rb b/spec/unit/util/loader_spec.rb > similarity index 100% > rename from spec/unit/util/loader.rb > rename to spec/unit/util/loader_spec.rb > diff --git a/spec/unit/util/macaddress.rb b/spec/unit/util/macaddress_spec.rb > similarity index 100% > rename from spec/unit/util/macaddress.rb > rename to spec/unit/util/macaddress_spec.rb > diff --git a/spec/unit/util/macosx.rb b/spec/unit/util/macosx_spec.rb > similarity index 100% > rename from spec/unit/util/macosx.rb > rename to spec/unit/util/macosx_spec.rb > diff --git a/spec/unit/util/manufacturer.rb > b/spec/unit/util/manufacturer_spec.rb > similarity index 100% > rename from spec/unit/util/manufacturer.rb > rename to spec/unit/util/manufacturer_spec.rb > diff --git a/spec/unit/util/resolution.rb b/spec/unit/util/resolution_spec.rb > similarity index 100% > rename from spec/unit/util/resolution.rb > rename to spec/unit/util/resolution_spec.rb > diff --git a/spec/unit/util/uptime.rb b/spec/unit/util/uptime_spec.rb > similarity index 100% > rename from spec/unit/util/uptime.rb > rename to spec/unit/util/uptime_spec.rb > diff --git a/spec/unit/util/virtual.rb b/spec/unit/util/virtual_spec.rb > similarity index 100% > rename from spec/unit/util/virtual.rb > rename to spec/unit/util/virtual_spec.rb > diff --git a/spec/unit/util/vlans.rb b/spec/unit/util/vlans_spec.rb > similarity index 100% > rename from spec/unit/util/vlans.rb > rename to spec/unit/util/vlans_spec.rb > diff --git a/spec/unit/util/xendomains.rb b/spec/unit/util/xendomains_spec.rb > similarity index 100% > rename from spec/unit/util/xendomains.rb > rename to spec/unit/util/xendomains_spec.rb > diff --git a/spec/unit/virtual.rb b/spec/unit/virtual_spec.rb > similarity index 100% > rename from spec/unit/virtual.rb > rename to spec/unit/virtual_spec.rb > -- > 1.7.3.5 > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To post to this group, send email to puppet-dev@googlegroups.com. > To unsubscribe from this group, send email to > puppet-dev+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-dev?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.