Module: StringSymbolAdapter

Included in:
MethodMatcher, VariableMatcher
Defined in:
lib/mspec/matchers/stringsymboladapter.rb

Instance Method Summary collapse

Instance Method Details

#convert_name(name) ⇒ Object


4
5
6
7
# File 'lib/mspec/matchers/stringsymboladapter.rb', line 4

def convert_name(name)
  version = SpecVersion.new(RUBY_VERSION) <=> "1.9"
  version < 0 ? name.to_s : name.to_sym
end