summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2009-04-29 23:13:19 +0200
committerJames Turnbull <james@lovedthanlost.net>2009-05-15 09:56:58 +1000
commit6a80b764ef2ac3bad5d7ecdf29aafd9e17887fe1 (patch)
treedf5562b00ae35fa4626ce74b48449358b9d01436 /test
parent172422fc0422e2646c4cc3afb7955876651cbf3e (diff)
downloadpuppet-6a80b764ef2ac3bad5d7ecdf29aafd9e17887fe1.tar.gz
puppet-6a80b764ef2ac3bad5d7ecdf29aafd9e17887fe1.tar.xz
puppet-6a80b764ef2ac3bad5d7ecdf29aafd9e17887fe1.zip
Fix some master failing tests
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/language/scope.rb2
-rwxr-xr-xtest/rails/railsparameter.rb2
-rwxr-xr-xtest/ral/type/file.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/language/scope.rb b/test/language/scope.rb
index eeaf179ba..77af950f5 100755
--- a/test/language/scope.rb
+++ b/test/language/scope.rb
@@ -404,7 +404,7 @@ class TestScope < Test::Unit::TestCase
end
end
- if defined? ActiveRecord
+ if defined? ::ActiveRecord
# Verify that we can both store and collect an object in the same
# run, whether it's in the same scope as a collection or a different
# scope.
diff --git a/test/rails/railsparameter.rb b/test/rails/railsparameter.rb
index 7c99ac38d..aaa88e505 100755
--- a/test/rails/railsparameter.rb
+++ b/test/rails/railsparameter.rb
@@ -8,7 +8,7 @@ require 'puppettest'
require 'puppettest/railstesting'
# Don't do any tests w/out this class
-if defined? ActiveRecord::Base
+if defined? ::ActiveRecord::Base
class TestRailsParameter < Test::Unit::TestCase
include PuppetTest::RailsTesting
diff --git a/test/ral/type/file.rb b/test/ral/type/file.rb
index 1e7f2862d..63d2a5270 100755
--- a/test/ral/type/file.rb
+++ b/test/ral/type/file.rb
@@ -1159,7 +1159,7 @@ class TestFile < Test::Unit::TestCase
wh = mock 'writehandle', :print => nil
rh = mock 'readhandle'
- rh.expects(:read).with(512).times(2).returns("other").then.returns(nil)
+ rh.expects(:read).with(4096).times(2).returns("other").then.returns(nil)
File.expects(:open).with { |*args| args[0] == tmpfile and args[1] != "r" }.yields(wh)
File.expects(:open).with { |*args| args[0] == tmpfile and args[1] == "r" }.yields(rh)