method
parse_expected
1.1.4 -
Show latest stable
-
0 notes -
Class: Spec::Matchers::Be
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0 (0)
- 1.2.8 (0)
- 1.3.0
- 1.3.1
- What's this?
parse_expected(expected)
private
Hide source
# File lib/spec/matchers/be.rb, line 124 def parse_expected(expected) if Symbol === expected @handling_predicate = true ["be_an_","be_a_","be_"].each do |prefix| if expected.starts_with?(prefix) @prefix = prefix return "#{expected.to_s.sub(@prefix,"")}".to_sym end end end @prefix = "" return expected end