From 66d894fd7a4283be06e1d92571241c0a41704f5b Mon Sep 17 00:00:00 2001 From: elliottcable Date: Fri, 12 Jun 2009 12:06:33 -0800 Subject: [PATCH] Adding a few more (cleaned) specs --- spec/stringray_spec.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/spec/stringray_spec.rb b/spec/stringray_spec.rb index dbca7f8..c938fe5 100644 --- a/spec/stringray_spec.rb +++ b/spec/stringray_spec.rb @@ -1,6 +1,9 @@ ($:.unshift File.expand_path(File.join( File.dirname(__FILE__), '..', 'lib' ))).uniq! require 'stringray' +Space = StringRay::Whitespace ' ' +Period = StringRay::Delimiter '.' + describe 'a String-ish including StringRay::Includes' do before :all do @S = Class.new String @@ -16,6 +19,31 @@ describe 'a String-ish including StringRay::Includes' do s = @S.new s.to_stray.should be_an_instance_of(StringRay) end + + it 'should be Enumerable' do + s = @S.new + class<