summaryrefslogtreecommitdiffstats
path: root/spec/unit/indirector/indirector.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/indirector/indirector.rb')
-rwxr-xr-xspec/unit/indirector/indirector.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/indirector/indirector.rb b/spec/unit/indirector/indirector.rb
index 390907ca2..78c8c614a 100755
--- a/spec/unit/indirector/indirector.rb
+++ b/spec/unit/indirector/indirector.rb
@@ -64,6 +64,16 @@ describe Puppet::Indirector, " when redirecting a model" do
@indirection = @thingie.send(:indirects, :test)
end
+ it "should give the model the ability set a version" do
+ thing = @thingie.new
+ thing.should respond_to(:version=)
+ end
+
+ it "should give the model the ability retrieve a version" do
+ thing = @thingie.new
+ thing.should respond_to(:version)
+ end
+
it "should give the model the ability to lookup a model instance by letting the indirection perform the lookup" do
@indirection.expects(:find)
@thingie.find