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)
#instance_variable_hash
-
TurboTestRubyRefinements::ClassVariableHash (Module)
#class_variable_hash
-
TurboTestRubyRefinements::ObjectLoadedConstants (Object)
#loaded_constants
-
TurboTestRubyRefinements::StringJSONParse (String)
#parse_as_json
-
TurboTestRubyRefinements::StringRelativePath (String)
#relative_path
-
TurboTestRubyRefinements::StringTestFile (String)
#test_file?
-
TurboTestRubyRefinements::GemLoadedSpecsPaths (Gem)
#loaded_specs_paths
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
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.