diff options
author | Markus Roberts <Markus@reality.com> | 2010-06-23 15:51:08 -0700 |
---|---|---|
committer | Markus Roberts <Markus@reality.com> | 2010-06-23 22:27:29 -0700 |
commit | 51b70c05167399eb2274fc1add18b6b18d31429d (patch) | |
tree | 1a33b11f0f589d6f5cd806d6da9de317887ca0e6 /spec/unit/indirector/memory.rb | |
parent | 9958c805dd90acadbb56ed3095e665d8afa990cd (diff) | |
download | puppet-51b70c05167399eb2274fc1add18b6b18d31429d.tar.gz puppet-51b70c05167399eb2274fc1add18b6b18d31429d.tar.xz puppet-51b70c05167399eb2274fc1add18b6b18d31429d.zip |
[#3994] rename the specs to have _spec.rb at the end
Some spec files like active_record.rb had names that would confuse the
load path and get loaded instead of the intended implentation when the
spec was run from the same directory as the file.
Author: Matt Robinson <matt@puppetlabs.com>
Date: Fri Jun 11 15:29:33 2010 -0700
Diffstat (limited to 'spec/unit/indirector/memory.rb')
-rwxr-xr-x | spec/unit/indirector/memory.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/spec/unit/indirector/memory.rb b/spec/unit/indirector/memory.rb deleted file mode 100755 index 3b754a1eb..000000000 --- a/spec/unit/indirector/memory.rb +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby - -require File.dirname(__FILE__) + '/../../spec_helper' -require 'puppet/indirector/memory' - -require 'shared_behaviours/memory_terminus' - -describe Puppet::Indirector::Memory do - it_should_behave_like "A Memory Terminus" - - before do - Puppet::Indirector::Terminus.stubs(:register_terminus_class) - @model = mock 'model' - @indirection = stub 'indirection', :name => :mystuff, :register_terminus_type => nil, :model => @model - Puppet::Indirector::Indirection.stubs(:instance).returns(@indirection) - - @memory_class = Class.new(Puppet::Indirector::Memory) do - def self.to_s - "Mystuff::Testing" - end - end - - @searcher = @memory_class.new - @name = "me" - @instance = stub 'instance', :name => @name - - @request = stub 'request', :key => @name, :instance => @instance - end -end |