aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/range
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/range')
-rw-r--r--spec/ruby/core/range/begin_spec.rb2
-rw-r--r--spec/ruby/core/range/end_spec.rb2
-rw-r--r--spec/ruby/core/range/eql_spec.rb2
-rw-r--r--spec/ruby/core/range/equal_value_spec.rb2
-rw-r--r--spec/ruby/core/range/first_spec.rb2
-rw-r--r--spec/ruby/core/range/last_spec.rb2
6 files changed, 6 insertions, 6 deletions
diff --git a/spec/ruby/core/range/begin_spec.rb b/spec/ruby/core/range/begin_spec.rb
index 090ae0a24b..64a5cbe157 100644
--- a/spec/ruby/core/range/begin_spec.rb
+++ b/spec/ruby/core/range/begin_spec.rb
@@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/begin', __FILE__)
describe "Range#begin" do
- it_behaves_like(:range_begin, :begin)
+ it_behaves_like :range_begin, :begin
end
diff --git a/spec/ruby/core/range/end_spec.rb b/spec/ruby/core/range/end_spec.rb
index 128f44c309..f5ad8560bb 100644
--- a/spec/ruby/core/range/end_spec.rb
+++ b/spec/ruby/core/range/end_spec.rb
@@ -2,5 +2,5 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/end', __FILE__)
describe "Range#end" do
- it_behaves_like(:range_end, :end)
+ it_behaves_like :range_end, :end
end
diff --git a/spec/ruby/core/range/eql_spec.rb b/spec/ruby/core/range/eql_spec.rb
index 2d495ee175..80f5bc4160 100644
--- a/spec/ruby/core/range/eql_spec.rb
+++ b/spec/ruby/core/range/eql_spec.rb
@@ -2,7 +2,7 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/equal_value', __FILE__)
describe "Range#eql?" do
- it_behaves_like(:range_eql, :eql?)
+ it_behaves_like :range_eql, :eql?
it "returns false if the endpoints are not eql?" do
(0..1).send(@method, 0..1.0).should == false
diff --git a/spec/ruby/core/range/equal_value_spec.rb b/spec/ruby/core/range/equal_value_spec.rb
index 488fe73c55..c0e5258990 100644
--- a/spec/ruby/core/range/equal_value_spec.rb
+++ b/spec/ruby/core/range/equal_value_spec.rb
@@ -2,7 +2,7 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/equal_value', __FILE__)
describe "Range#==" do
- it_behaves_like(:range_eql, :==)
+ it_behaves_like :range_eql, :==
it "returns true if the endpoints are ==" do
(0..1).send(@method, 0..1.0).should == true
diff --git a/spec/ruby/core/range/first_spec.rb b/spec/ruby/core/range/first_spec.rb
index 7cd3781d34..59ef02ed74 100644
--- a/spec/ruby/core/range/first_spec.rb
+++ b/spec/ruby/core/range/first_spec.rb
@@ -2,7 +2,7 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/begin', __FILE__)
describe "Range#first" do
- it_behaves_like(:range_begin, :first)
+ it_behaves_like :range_begin, :first
it "returns the specified number of elements from the beginning" do
(0..2).first(2).should == [0, 1]
diff --git a/spec/ruby/core/range/last_spec.rb b/spec/ruby/core/range/last_spec.rb
index 581e04f785..c3b3c73e98 100644
--- a/spec/ruby/core/range/last_spec.rb
+++ b/spec/ruby/core/range/last_spec.rb
@@ -2,7 +2,7 @@ require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/end', __FILE__)
describe "Range#last" do
- it_behaves_like(:range_end, :last)
+ it_behaves_like :range_end, :last
it "returns the specified number of elements from the end" do
(1..5).last(3).should == [3, 4, 5]