Tests Maintainability Coverage Status

TurboTestRubyRefinements

Collection of refinements for Ruby classes:

  • TurboTestRubyRefinements::HashDeepMerge (Hash)

    #deep_merge from ActiveSupport #deep_merge! from ActiveSupport

  • TurboTestRubyRefinements::HashLeafPaths (Hash)

    #leaf_paths: returns an array with a list of nested keys in the hash

  • TurboTestRubyRefinements::ModuleName (Module)

    #turbo_test_name: resolves singleton and anonymous class names.

  • TurboTestRubyRefinements::InstanceVariableHash (Module)

    - TurboTestRubyRefinements::ClassVariableHash (Module)
    
    ```#class_variable_hash```
    
  • TurboTestRubyRefinements::ObjectLoadedConstants (Object)

    </code>
  • TurboTestRubyRefinements::StringJSONParse (String)

    </code>
  • TurboTestRubyRefinements::StringRelativePath (String)

    </code>
  • TurboTestRubyRefinements::StringTestFile (String)

    </code>
  • TurboTestRubyRefinements::GemLoadedSpecsPaths (Gem)

    </code>

Installation

Add this line to your application's Gemfile:

gem 'turbo_test_ruby_refinements'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install turbo_test_ruby_refinements

Usage

Activate the refinements you want to use at the top-level, and inside classes and modules.

using TurboTestRubyRefinements::StringRelativePath

Refinements Documentation

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dunkelbraun/turbo_test_ruby_refinements. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the TurboTestRubyRefinements project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.