summaryrefslogtreecommitdiff
path: root/spec/ruby/language/array_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/language/array_spec.rb')
-rw-r--r--spec/ruby/language/array_spec.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/spec/ruby/language/array_spec.rb b/spec/ruby/language/array_spec.rb
index 2583cffbf7..c3ed8c14c5 100644
--- a/spec/ruby/language/array_spec.rb
+++ b/spec/ruby/language/array_spec.rb
@@ -1,5 +1,5 @@
-require_relative '../spec_helper'
-require_relative 'fixtures/array'
+require File.expand_path('../../spec_helper', __FILE__)
+require File.expand_path('../fixtures/array', __FILE__)
describe "Array literals" do
it "[] should return a new array populated with the given elements" do
@@ -36,13 +36,6 @@ describe "Array literals" do
[1, *nil, 3].should == [1, 3]
[*nil, *nil, *nil].should == []
end
-
- it "evaluates each argument exactly once" do
- se = ArraySpec::SideEffect.new
- se.array_result(true)
- se.array_result(false)
- se.call_count.should == 4
- end
end
describe "Bareword array literal" do