No commit activity in last 3 years
No release in over 3 years
Specification of Normalized Hash data structure main goal is to make data produced by parsers easy to use by software that does not know about internal data structure, i.e. data driven and schema-less. Data structures should be built in such a way as to make data self-documenting, easy adaptable and 'software-friendly'. Gem contains RSpec tests for testing Hash data structure for compliance with the requirements. See README.md and NormalizedHash.md files in gem's root directory.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

active_support
>= 0
>= 0
>= 2.0.0
 Project Readme

Normalized Hash tests for RSpec

Build Status

These are RSpec tests for Normalized Hash data structure standard. Standard itself and rationale why we (I) need it, is described in NormalizedHash.md file.

RSpec deep hash tests were insired by https://github.com/vitalish/rspec-deep-matchers specs.

Usage

   require 'rspec_normalized_hash'

   describe "Good data structure" do

       before(:each) { subject @data }

       it { should have_keys_in_class [String, Symbol] }
       it { should have_values_in_class [Fixnum, String, Numeric, Hash, Array] }
       it { should have_array_values_in_class [String,Numeric,Hash] }
       it { should have_array_values_of_the_same_class }

       it { NOT IMPLEMENTED: enclosed arrays in Hash }
   end
                                   

License

Apache 2

Author

Dmytro Kovalov

dmytro.kovalov@gmail.com

Aug,Sept 2012