summaryrefslogtreecommitdiff
path: root/spec/ruby/library/tempfile/length_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/tempfile/length_spec.rb')
-rw-r--r--spec/ruby/library/tempfile/length_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/ruby/library/tempfile/length_spec.rb b/spec/ruby/library/tempfile/length_spec.rb
index bc622b9a70..924c12942b 100644
--- a/spec/ruby/library/tempfile/length_spec.rb
+++ b/spec/ruby/library/tempfile/length_spec.rb
@@ -1,7 +1,8 @@
require_relative '../../spec_helper'
-require_relative 'shared/length'
require 'tempfile'
describe "Tempfile#length" do
- it_behaves_like :tempfile_length, :length
+ it "is an alias of Tempfile#size" do
+ Tempfile.instance_method(:length).should == Tempfile.instance_method(:size)
+ end
end