summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/array/take_while_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/core/array/take_while_spec.rb')
-rw-r--r--spec/rubyspec/core/array/take_while_spec.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/rubyspec/core/array/take_while_spec.rb b/spec/rubyspec/core/array/take_while_spec.rb
deleted file mode 100644
index a97f304490..0000000000
--- a/spec/rubyspec/core/array/take_while_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-
-describe "Array#take_while" do
- it "returns all elements until the block returns false" do
- [1, 2, 3].take_while{ |element| element < 3 }.should == [1, 2]
- end
-
- it "returns all elements until the block returns nil" do
- [1, 2, nil, 4].take_while{ |element| element }.should == [1, 2]
- end
-
- it "returns all elements until the block returns false" do
- [1, 2, false, 4].take_while{ |element| element }.should == [1, 2]
- end
-end