summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_io_buffer.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_io_buffer.rb b/test/ruby/test_io_buffer.rb
index a395dccf2b..362845ec2a 100644
--- a/test/ruby/test_io_buffer.rb
+++ b/test/ruby/test_io_buffer.rb
@@ -60,17 +60,17 @@ class TestIOBuffer < Test::Unit::TestCase
buffer = IO::Buffer.new(128, IO::Buffer::INTERNAL|IO::Buffer::READONLY)
assert buffer.readonly?
- assert_raise IO::Buffer::MutationError do
+ assert_raise IO::Buffer::AccessError do
buffer.set_string("")
end
- assert_raise IO::Buffer::MutationError do
+ assert_raise IO::Buffer::AccessError do
buffer.set_string("!", 1)
end
end
def test_file_mapped
- buffer = File.open(__FILE__) {|file| IO::Buffer.map(file)}
+ buffer = File.open(__FILE__) {|file| IO::Buffer.map(file, nil, 0, IO::Buffer::READONLY)}
contents = buffer.get_string
assert_include contents, "Hello World"