Sha256: 5ba33bc97f0d608b0e759547b0388af6be7fd3e1fa44c9a2735c155f648dd733

Contents?: true

Size: 182 Bytes

Versions: 114

Compression:

Stored size: 182 Bytes

Contents

require 'mspec/utils/version'

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

Version data entries

114 entries across 90 versions & 3 rubygems

Version Path
rhodes-3.1.1 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.1.1.beta lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.1.0 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.1.0.beta.5 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.1.0.beta.4 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.1.0.beta.3 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.1.0.beta.2 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.1.0.beta.1 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.0.2 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.0.2.beta.1 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.0.1 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.0.1.beta.8 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.0.1.beta.7 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.0.1.beta.6 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.0.1.beta.5 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.0.1.beta.4 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.0.1.beta.3 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.0.1.beta.2 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.0.0 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb
rhodes-3.0.0.beta.7 lib/extensions/mspec/mspec/matchers/stringsymboladapter.rb