summaryrefslogtreecommitdiff
path: root/spec/ruby/core/matchdata/deconstruct_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/matchdata/deconstruct_spec.rb')
-rw-r--r--spec/ruby/core/matchdata/deconstruct_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/ruby/core/matchdata/deconstruct_spec.rb b/spec/ruby/core/matchdata/deconstruct_spec.rb
index c55095665d..13ebd1848f 100644
--- a/spec/ruby/core/matchdata/deconstruct_spec.rb
+++ b/spec/ruby/core/matchdata/deconstruct_spec.rb
@@ -1,6 +1,7 @@
require_relative '../../spec_helper'
-require_relative 'shared/captures'
describe "MatchData#deconstruct" do
- it_behaves_like :matchdata_captures, :deconstruct
+ it "is an alias of MatchData#captures" do
+ MatchData.instance_method(:deconstruct).should == MatchData.instance_method(:captures)
+ end
end