repo.or.cz
/
monkeycharger.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Upgraded Rails and RSpec
[monkeycharger.git]
/
vendor
/
plugins
/
rspec
/
rspec
/
lib
/
spec
/
expectations
/
extensions
/
string_and_symbol.rb
blob
29cfbddfae540a0526e89927608e41763182c956
1
module Spec
2
module Expectations
3
module StringHelpers
4
def starts_with?(prefix)
5
to_s[0..(prefix.to_s.length - 1)] == prefix.to_s
6
end
7
end
8
end
9
end
10
11
class String
12
include Spec::Expectations::StringHelpers
13
end
14
15
class Symbol
16
include Spec::Expectations::StringHelpers
17
end