Sha256: 93d9a86cc1480d1202f4ddb6d94614416b1ffdf0e332ab1a3074b61074a84df0

Contents?: true

Size: 350 Bytes

Versions: 4

Compression:

Stored size: 350 Bytes

Contents

require 'rubocop-rspec'

module Ws
  module Style
    module Inflector
      def camel_to_snake_case(string)
        if defined?(ActiveSupport::Inflector)
          ActiveSupport::Inflector.underscore(string)
        else
          super
        end
      end
    end
  end
end

::RuboCop::Cop::RSpec::SpecFilePathFormat.prepend Ws::Style::Inflector

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ws-style-7.7.0 lib/ws/style/inflector.rb
ws-style-7.6.1 lib/ws/style/inflector.rb
ws-style-7.6.0 lib/ws/style/inflector.rb
ws-style-7.5.1 lib/ws/style/inflector.rb