RSpec Code Examples

 

 

Errors::Validation
correctly stores the error hash0.03414s
correctly return the JSON equivalent of the error hash as message0.00021s
Handlers::Exceptions
always returns the same instance0.00163s
#report_error
raises an error of the right type0.00081s
Handlers::Messages
can correctly store several errors0.00040s
Validate
validate
correctly validates a hash 0.00164s
{"type":"standard","exception":"NoMethodError","message":"undefined method `pry' for #<Binding:0x0000000184b0d8>","backtrace":["/home/vincent/workspace/ruby/gems/kharon/lib/kharon/validator.rb:26:in `initialize'","/home/vincent/workspace/ruby/gems/kharon/lib/kharon/validate.rb:11:in `new'","/home/vincent/workspace/ruby/gems/kharon/lib/kharon/validate.rb:11:in `validate'","/home/vincent/workspace/ruby/gems/kharon/spec/lib/kharon/validate_spec.rb:13:in `block (3 levels) in <top (required)>'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/example.rb:152:in `instance_exec'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/example.rb:152:in `block in run'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/example.rb:329:in `with_around_example_hooks'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/example.rb:149:in `run'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/example_group.rb:490:in `block in run_examples'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/example_group.rb:486:in `map'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/example_group.rb:486:in `run_examples'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/example_group.rb:453:in `run'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/example_group.rb:454:in `block in run'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/example_group.rb:454:in `map'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/example_group.rb:454:in `run'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:111:in `block (2 levels) in run_specs'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:111:in `map'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:111:in `block in run_specs'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/reporter.rb:53:in `report'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:107:in `run_specs'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:85:in `run'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:69:in `run'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:37:in `invoke'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/gems/rspec-core-3.1.7/exe/rspec:4:in `<top (required)>'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/bin/rspec:23:in `load'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/bin/rspec:23:in `<main>'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `eval'","/home/vincent/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `<main>'"]}
./lib/kharon/validate.rb:17:in `rescue in validate'
./lib/kharon/validate.rb:10:in `validate'
./spec/lib/kharon/validate_spec.rb:13:in `block (3 levels) in <top (required)>'
15        raise exception
16      rescue Exception => exception
17        raise Kharon::Errors::Validation.new({type: "standard", exception: exception.class.to_s, message: exception.message, backtrace: exception.backtrace})
18      end
19    end
20# Install the coderay gem to get syntax highlighting
fails when an error is raised by validation0.00021s
Validator
integer
succeeds when given an integer 0.00009s
undefined method `pry' for #<Binding:0x00000001512ab0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:247:in `new'
./spec/lib/kharon/validator_spec.rb:247:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when given a float 0.00009s
undefined method `pry' for #<Binding:0x000000014c32f8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:253:in `new'
./spec/lib/kharon/validator_spec.rb:253:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when not given a numeric 0.00009s
undefined method `pry' for #<Binding:0x000000014e29f0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:258:in `new'
./spec/lib/kharon/validator_spec.rb:258:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
options
:rename
correctly renames a key when the value is valid 0.00009s
undefined method `pry' for #<Binding:0x000000019437d8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:6:in `new'
./spec/lib/kharon/validator_spec.rb:6:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
correctly doesn't rename a key when the value is invalid 0.00010s
undefined method `pry' for #<Binding:0x0000000194dd50>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:12:in `new'
./spec/lib/kharon/validator_spec.rb:12:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependency
succeeds when a dependency is given as a key and respected 0.00009s
undefined method `pry' for #<Binding:0x0000000195f140>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:19:in `new'
./spec/lib/kharon/validator_spec.rb:19:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a dependency is not respected 0.00010s
undefined method `pry' for #<Binding:0x0000000146a1a8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:25:in `new'
./spec/lib/kharon/validator_spec.rb:25:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependencies
succeeds when dependencies are given as an array and respected 0.00009s
undefined method `pry' for #<Binding:0x00000001459678>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:32:in `new'
./spec/lib/kharon/validator_spec.rb:32:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when one of the dependencies is not respected 0.00010s
undefined method `pry' for #<Binding:0x00000001422d08>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:38:in `new'
./spec/lib/kharon/validator_spec.rb:38:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:required
succeeds when a not required key is not given, but filters nothing 0.00009s
undefined method `pry' for #<Binding:0x000000023fb8d8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:45:in `new'
./spec/lib/kharon/validator_spec.rb:45:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
suceeds when a key has a required option to false, and is not given, but filters nothing 0.00010s
undefined method `pry' for #<Binding:0x0000000242d0b8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:51:in `new'
./spec/lib/kharon/validator_spec.rb:51:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a required key is not given 0.00018s
undefined method `pry' for #<Binding:0x00000000cc38c8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:57:in `new'
./spec/lib/kharon/validator_spec.rb:57:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:in
succeeds when the value is effectively in the possible values 0.00010s
undefined method `pry' for #<Binding:0x00000000d2a050>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:64:in `new'
./spec/lib/kharon/validator_spec.rb:64:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds if there are no values 0.00015s
undefined method `pry' for #<Binding:0x00000000fb6f30>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:70:in `new'
./spec/lib/kharon/validator_spec.rb:70:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not in the possible values 0.00011s
undefined method `pry' for #<Binding:0x0000000106f6e8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:76:in `new'
./spec/lib/kharon/validator_spec.rb:76:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals
succeeds when the value is equal to the given value 0.00009s
undefined method `pry' for #<Binding:0x00000001701380>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:83:in `new'
./spec/lib/kharon/validator_spec.rb:83:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not equal to the given value 0.00010s
undefined method `pry' for #<Binding:0x000000018d58f0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:89:in `new'
./spec/lib/kharon/validator_spec.rb:89:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals_key
suceeds when the key is present and equals to the other key 0.00012s
undefined method `pry' for #<Binding:0x00000001512ee8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:96:in `new'
./spec/lib/kharon/validator_spec.rb:96:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key is present, but not equals to the other key 0.00016s
undefined method `pry' for #<Binding:0x000000014c8000>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:102:in `new'
./spec/lib/kharon/validator_spec.rb:102:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key to compare the validated key with is not in the hash 0.00012s
undefined method `pry' for #<Binding:0x0000000192d938>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:107:in `new'
./spec/lib/kharon/validator_spec.rb:107:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:extract
etracts the data when given at true 0.00009s
undefined method `pry' for #<Binding:0x000000019487d8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:114:in `new'
./spec/lib/kharon/validator_spec.rb:114:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't extract the data when given at false 0.00010s
undefined method `pry' for #<Binding:0x00000001951bf8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:120:in `new'
./spec/lib/kharon/validator_spec.rb:120:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:cast
casts the data when given at true 0.00008s
undefined method `pry' for #<Binding:0x00000001962138>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:128:in `new'
./spec/lib/kharon/validator_spec.rb:128:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't cast the data when given at false 0.00010s
undefined method `pry' for #<Binding:0x00000001970468>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:134:in `new'
./spec/lib/kharon/validator_spec.rb:134:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:min
succeeds when a min option is given, and the value is strictly greater than it 0.00009s
undefined method `pry' for #<Binding:0x00000001446d20>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:156:in `new'
./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:160:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds when a min option is given, and the value is equal to it 0.00012s
undefined method `pry' for #<Binding:0x00000001202848>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:156:in `new'
./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:165:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a min option is given, but not respected 0.00067s
expected Kharon::Errors::Validation, got #<NoMethodError: undefined method `pry' for #<Binding:0x000000024226b8>> with backtrace:
  # ./lib/kharon/validator.rb:26:in `initialize'
  # ./spec/lib/kharon/validator_spec.rb:156:in `new'
  # ./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:170:in `block (4 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:170:in `block (3 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:170:in `block (3 levels) in <top (required)>'
168
169    it "fails when a min option is given, but not respected" do
170      expect(->{validator.send(process, key, {min: value+1})}).to raise_error(Kharon::Errors::Validation)
171    end
172  end
173# Install the coderay gem to get syntax highlighting
:max
succeeds when a max option is given, and the value is strictly lesser than it 0.00008s
undefined method `pry' for #<Binding:0x00000002451558>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:156:in `new'
./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:176:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds when a max option is given, and the value is equal to it 0.00018s
undefined method `pry' for #<Binding:0x0000000250cc68>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:156:in `new'
./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:181:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a max option is given, but not respected 0.00059s
expected Kharon::Errors::Validation, got #<NoMethodError: undefined method `pry' for #<Binding:0x00000002517960>> with backtrace:
  # ./lib/kharon/validator.rb:26:in `initialize'
  # ./spec/lib/kharon/validator_spec.rb:156:in `new'
  # ./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:186:in `block (4 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:186:in `block (3 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:186:in `block (3 levels) in <top (required)>'
184
185    it "fails when a max option is given, but not respected" do
186      expect(->{validator.send(process, key, {max: value-1})}).to raise_error(Kharon::Errors::Validation)
187    end
188  end
189# Install the coderay gem to get syntax highlighting
:between
succeeds when a between option is given, and respected 0.00008s
undefined method `pry' for #<Binding:0x0000000252cfb8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:156:in `new'
./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:193:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a max between option is given, but the value is strictly lesser 0.00058s
expected Kharon::Errors::Validation, got #<NoMethodError: undefined method `pry' for #<Binding:0x00000002537b98>> with backtrace:
  # ./lib/kharon/validator.rb:26:in `initialize'
  # ./spec/lib/kharon/validator_spec.rb:156:in `new'
  # ./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:198:in `block (4 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:198:in `block (3 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:198:in `block (3 levels) in <top (required)>'
196
197    it "fails when a max between option is given, but the value is strictly lesser" do
198      expect(->{validator.send(process, key, {between: [value+1, value+2]})}).to raise_error(Kharon::Errors::Validation)
199    end
200
201# Install the coderay gem to get syntax highlighting
fails when a max between option is given, but the value is strictly greater 0.00060s
expected Kharon::Errors::Validation, got #<NoMethodError: undefined method `pry' for #<Binding:0x0000000254dc90>> with backtrace:
  # ./lib/kharon/validator.rb:26:in `initialize'
  # ./spec/lib/kharon/validator_spec.rb:156:in `new'
  # ./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:202:in `block (4 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:202:in `block (3 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:202:in `block (3 levels) in <top (required)>'
200
201    it "fails when a max between option is given, but the value is strictly greater" do
202      expect(->{validator.send(process, key, {between: [value-2, value-1]})}).to raise_error(Kharon::Errors::Validation)
203    end
204
205# Install the coderay gem to get syntax highlighting
fails when a max between option is given, but the value is equal to the inferior limit 0.00009s
undefined method `pry' for #<Binding:0x0000000255bde0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:156:in `new'
./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:206:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a max between option is given, but the value is equal to the superio limit 0.00030s
undefined method `pry' for #<Binding:0x00000000ab0518>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:156:in `new'
./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:211:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
numeric
succeeds when given an integer 0.00021s
undefined method `pry' for #<Binding:0x00000000e99558>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:277:in `new'
./spec/lib/kharon/validator_spec.rb:277:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds when given an decimal number with a dot 0.00045s
undefined method `pry' for #<Binding:0x00000001019d38>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:283:in `new'
./spec/lib/kharon/validator_spec.rb:283:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds when given an decimal number with a comma 0.00043s
undefined method `pry' for #<Binding:0x0000000158ed40>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:289:in `new'
./spec/lib/kharon/validator_spec.rb:289:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when not given a numeric 0.00016s
undefined method `pry' for #<Binding:0x00000001889dd8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:295:in `new'
./spec/lib/kharon/validator_spec.rb:295:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
options
:rename
correctly renames a key when the value is valid 0.00026s
undefined method `pry' for #<Binding:0x0000000190e128>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:6:in `new'
./spec/lib/kharon/validator_spec.rb:6:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
correctly doesn't rename a key when the value is invalid 0.00022s
undefined method `pry' for #<Binding:0x0000000151f760>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:12:in `new'
./spec/lib/kharon/validator_spec.rb:12:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependency
succeeds when a dependency is given as a key and respected 0.00016s
undefined method `pry' for #<Binding:0x000000014dc848>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:19:in `new'
./spec/lib/kharon/validator_spec.rb:19:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a dependency is not respected 0.00019s
undefined method `pry' for #<Binding:0x00000001940358>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:25:in `new'
./spec/lib/kharon/validator_spec.rb:25:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependencies
succeeds when dependencies are given as an array and respected 0.00013s
undefined method `pry' for #<Binding:0x0000000194f330>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:32:in `new'
./spec/lib/kharon/validator_spec.rb:32:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when one of the dependencies is not respected 0.00018s
undefined method `pry' for #<Binding:0x0000000195f488>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:38:in `new'
./spec/lib/kharon/validator_spec.rb:38:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:required
succeeds when a not required key is not given, but filters nothing 0.00013s
undefined method `pry' for #<Binding:0x000000019669b8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:45:in `new'
./spec/lib/kharon/validator_spec.rb:45:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
suceeds when a key has a required option to false, and is not given, but filters nothing 0.00013s
undefined method `pry' for #<Binding:0x00000001444980>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:51:in `new'
./spec/lib/kharon/validator_spec.rb:51:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a required key is not given 0.00015s
undefined method `pry' for #<Binding:0x000000014979c8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:57:in `new'
./spec/lib/kharon/validator_spec.rb:57:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:in
succeeds when the value is effectively in the possible values 0.00012s
undefined method `pry' for #<Binding:0x00000002424440>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:64:in `new'
./spec/lib/kharon/validator_spec.rb:64:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds if there are no values 0.00015s
undefined method `pry' for #<Binding:0x0000000242d4f0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:70:in `new'
./spec/lib/kharon/validator_spec.rb:70:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not in the possible values 0.00015s
undefined method `pry' for #<Binding:0x000000025043d8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:76:in `new'
./spec/lib/kharon/validator_spec.rb:76:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals
succeeds when the value is equal to the given value 0.00010s
undefined method `pry' for #<Binding:0x0000000250e658>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:83:in `new'
./spec/lib/kharon/validator_spec.rb:83:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not equal to the given value 0.00010s
undefined method `pry' for #<Binding:0x00000002521690>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:89:in `new'
./spec/lib/kharon/validator_spec.rb:89:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals_key
suceeds when the key is present and equals to the other key 0.00010s
undefined method `pry' for #<Binding:0x0000000252ba00>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:96:in `new'
./spec/lib/kharon/validator_spec.rb:96:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key is present, but not equals to the other key 0.00010s
undefined method `pry' for #<Binding:0x00000002536d88>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:102:in `new'
./spec/lib/kharon/validator_spec.rb:102:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key to compare the validated key with is not in the hash 0.00010s
undefined method `pry' for #<Binding:0x00000002549cf8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:107:in `new'
./spec/lib/kharon/validator_spec.rb:107:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:extract
etracts the data when given at true 0.00040s
undefined method `pry' for #<Binding:0x00000002554018>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:114:in `new'
./spec/lib/kharon/validator_spec.rb:114:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't extract the data when given at false 0.00010s
undefined method `pry' for #<Binding:0x0000000255e950>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:120:in `new'
./spec/lib/kharon/validator_spec.rb:120:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:cast
casts the data when given at true 0.00016s
undefined method `pry' for #<Binding:0x00000000ad4e90>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:128:in `new'
./spec/lib/kharon/validator_spec.rb:128:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't cast the data when given at false 0.00012s
undefined method `pry' for #<Binding:0x00000000eea548>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:134:in `new'
./spec/lib/kharon/validator_spec.rb:134:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:min
succeeds when a min option is given, and the value is strictly greater than it 0.00016s
undefined method `pry' for #<Binding:0x0000000102f980>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:156:in `new'
./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:160:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds when a min option is given, and the value is equal to it 0.00012s
undefined method `pry' for #<Binding:0x000000016a97c0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:156:in `new'
./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:165:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a min option is given, but not respected 0.00079s
expected Kharon::Errors::Validation, got #<NoMethodError: undefined method `pry' for #<Binding:0x000000018c97f8>> with backtrace:
  # ./lib/kharon/validator.rb:26:in `initialize'
  # ./spec/lib/kharon/validator_spec.rb:156:in `new'
  # ./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:170:in `block (4 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:170:in `block (3 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:170:in `block (3 levels) in <top (required)>'
168
169    it "fails when a min option is given, but not respected" do
170      expect(->{validator.send(process, key, {min: value+1})}).to raise_error(Kharon::Errors::Validation)
171    end
172  end
173# Install the coderay gem to get syntax highlighting
:max
succeeds when a max option is given, and the value is strictly lesser than it 0.00010s
undefined method `pry' for #<Binding:0x000000014ff000>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:156:in `new'
./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:176:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds when a max option is given, and the value is equal to it 0.00011s
undefined method `pry' for #<Binding:0x000000014e2c98>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:156:in `new'
./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:181:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a max option is given, but not respected 0.00069s
expected Kharon::Errors::Validation, got #<NoMethodError: undefined method `pry' for #<Binding:0x00000001947680>> with backtrace:
  # ./lib/kharon/validator.rb:26:in `initialize'
  # ./spec/lib/kharon/validator_spec.rb:156:in `new'
  # ./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:186:in `block (4 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:186:in `block (3 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:186:in `block (3 levels) in <top (required)>'
184
185    it "fails when a max option is given, but not respected" do
186      expect(->{validator.send(process, key, {max: value-1})}).to raise_error(Kharon::Errors::Validation)
187    end
188  end
189# Install the coderay gem to get syntax highlighting
:between
succeeds when a between option is given, and respected 0.00019s
undefined method `pry' for #<Binding:0x0000000195e240>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:156:in `new'
./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:193:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a max between option is given, but the value is strictly lesser 0.00060s
expected Kharon::Errors::Validation, got #<NoMethodError: undefined method `pry' for #<Binding:0x00000001969cf8>> with backtrace:
  # ./lib/kharon/validator.rb:26:in `initialize'
  # ./spec/lib/kharon/validator_spec.rb:156:in `new'
  # ./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:198:in `block (4 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:198:in `block (3 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:198:in `block (3 levels) in <top (required)>'
196
197    it "fails when a max between option is given, but the value is strictly lesser" do
198      expect(->{validator.send(process, key, {between: [value+1, value+2]})}).to raise_error(Kharon::Errors::Validation)
199    end
200
201# Install the coderay gem to get syntax highlighting
fails when a max between option is given, but the value is strictly greater 0.00064s
expected Kharon::Errors::Validation, got #<NoMethodError: undefined method `pry' for #<Binding:0x00000001423208>> with backtrace:
  # ./lib/kharon/validator.rb:26:in `initialize'
  # ./spec/lib/kharon/validator_spec.rb:156:in `new'
  # ./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:202:in `block (4 levels) in <top (required)>'
  # ./spec/lib/kharon/validator_spec.rb:202:in `block (3 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:202:in `block (3 levels) in <top (required)>'
200
201    it "fails when a max between option is given, but the value is strictly greater" do
202      expect(->{validator.send(process, key, {between: [value-2, value-1]})}).to raise_error(Kharon::Errors::Validation)
203    end
204
205# Install the coderay gem to get syntax highlighting
fails when a max between option is given, but the value is equal to the inferior limit 0.00011s
undefined method `pry' for #<Binding:0x00000002421498>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:156:in `new'
./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:206:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a max between option is given, but the value is equal to the superio limit 0.00010s
undefined method `pry' for #<Binding:0x00000002454820>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:156:in `new'
./spec/lib/kharon/validator_spec.rb:156:in `block (2 levels) in <top (required)>'
./spec/lib/kharon/validator_spec.rb:211:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:round
rounds the number when the option is passed as an integer 0.00008s
undefined method `pry' for #<Binding:0x0000000250d690>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:305:in `new'
./spec/lib/kharon/validator_spec.rb:305:in `block (5 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
rounds the number when the option is passed as a boolean 0.00009s
undefined method `pry' for #<Binding:0x00000002517500>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:311:in `new'
./spec/lib/kharon/validator_spec.rb:311:in `block (5 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't round the number if passed with another type 0.00009s
undefined method `pry' for #<Binding:0x000000025297f0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:317:in `new'
./spec/lib/kharon/validator_spec.rb:317:in `block (5 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:floor
floors the number if passed to true 0.00009s
undefined method `pry' for #<Binding:0x00000002532bc0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:325:in `new'
./spec/lib/kharon/validator_spec.rb:325:in `block (5 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't floor the number if passed to false 0.00010s
undefined method `pry' for #<Binding:0x00000002544cf8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:331:in `new'
./spec/lib/kharon/validator_spec.rb:331:in `block (5 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:ceil
ceils the number if passed to true 0.00011s
undefined method `pry' for #<Binding:0x0000000254e438>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:339:in `new'
./spec/lib/kharon/validator_spec.rb:339:in `block (5 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't ceil the number if passed to false 0.00011s
undefined method `pry' for #<Binding:0x000000025602f0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:345:in `new'
./spec/lib/kharon/validator_spec.rb:345:in `block (5 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
text
succeeds when given an instance of String 0.00009s
undefined method `pry' for #<Binding:0x0000000211d8a0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:143:in `new'
./spec/lib/kharon/validator_spec.rb:143:in `block (2 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when given something else than an instance of String 0.00010s
undefined method `pry' for #<Binding:0x00000001e1a1f8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:149:in `new'
./spec/lib/kharon/validator_spec.rb:149:in `block (2 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
options
:rename
correctly renames a key when the value is valid 0.00022s
undefined method `pry' for #<Binding:0x000000025798b8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:6:in `new'
./spec/lib/kharon/validator_spec.rb:6:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
correctly doesn't rename a key when the value is invalid 0.00018s
undefined method `pry' for #<Binding:0x00000000bfdbc8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:12:in `new'
./spec/lib/kharon/validator_spec.rb:12:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependency
succeeds when a dependency is given as a key and respected 0.00012s
undefined method `pry' for #<Binding:0x00000000fa93a8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:19:in `new'
./spec/lib/kharon/validator_spec.rb:19:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a dependency is not respected 0.00015s
undefined method `pry' for #<Binding:0x00000001074120>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:25:in `new'
./spec/lib/kharon/validator_spec.rb:25:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependencies
succeeds when dependencies are given as an array and respected 0.00011s
undefined method `pry' for #<Binding:0x000000018416f0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:32:in `new'
./spec/lib/kharon/validator_spec.rb:32:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when one of the dependencies is not respected 0.00011s
undefined method `pry' for #<Binding:0x000000019147d0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:38:in `new'
./spec/lib/kharon/validator_spec.rb:38:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:required
succeeds when a not required key is not given, but filters nothing 0.00010s
undefined method `pry' for #<Binding:0x00000001500db0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:45:in `new'
./spec/lib/kharon/validator_spec.rb:45:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
suceeds when a key has a required option to false, and is not given, but filters nothing 0.00013s
undefined method `pry' for #<Binding:0x000000014e4638>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:51:in `new'
./spec/lib/kharon/validator_spec.rb:51:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a required key is not given 0.00010s
undefined method `pry' for #<Binding:0x00000001948d50>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:57:in `new'
./spec/lib/kharon/validator_spec.rb:57:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:in
succeeds when the value is effectively in the possible values 0.00013s
undefined method `pry' for #<Binding:0x00000001955b18>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:64:in `new'
./spec/lib/kharon/validator_spec.rb:64:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds if there are no values 0.00010s
undefined method `pry' for #<Binding:0x00000001464cd0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:70:in `new'
./spec/lib/kharon/validator_spec.rb:70:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not in the possible values 0.00010s
undefined method `pry' for #<Binding:0x0000000145b3b0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:76:in `new'
./spec/lib/kharon/validator_spec.rb:76:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals
succeeds when the value is equal to the given value 0.00009s
undefined method `pry' for #<Binding:0x00000001417250>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:83:in `new'
./spec/lib/kharon/validator_spec.rb:83:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not equal to the given value 0.00015s
undefined method `pry' for #<Binding:0x00000002424aa8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:89:in `new'
./spec/lib/kharon/validator_spec.rb:89:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals_key
suceeds when the key is present and equals to the other key 0.00009s
undefined method `pry' for #<Binding:0x00000002432810>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:96:in `new'
./spec/lib/kharon/validator_spec.rb:96:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key is present, but not equals to the other key 0.00010s
undefined method `pry' for #<Binding:0x00000002507e48>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:102:in `new'
./spec/lib/kharon/validator_spec.rb:102:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key to compare the validated key with is not in the hash 0.00013s
undefined method `pry' for #<Binding:0x000000025190a8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:107:in `new'
./spec/lib/kharon/validator_spec.rb:107:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:extract
etracts the data when given at true 0.00009s
undefined method `pry' for #<Binding:0x00000002529a70>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:114:in `new'
./spec/lib/kharon/validator_spec.rb:114:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't extract the data when given at false 0.00010s
undefined method `pry' for #<Binding:0x00000002532490>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:120:in `new'
./spec/lib/kharon/validator_spec.rb:120:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:cast
casts the data when given at true 0.00009s
undefined method `pry' for #<Binding:0x00000002542d68>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:128:in `new'
./spec/lib/kharon/validator_spec.rb:128:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't cast the data when given at false 0.00012s
undefined method `pry' for #<Binding:0x00000002553898>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:134:in `new'
./spec/lib/kharon/validator_spec.rb:134:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:regex
succeeds when the regular expression is respected 0.00009s
undefined method `pry' for #<Binding:0x00000002563900>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:368:in `new'
./spec/lib/kharon/validator_spec.rb:368:in `block (5 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the regular expression is not respected 0.00009s
undefined method `pry' for #<Binding:0x0000000211a498>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:374:in `new'
./spec/lib/kharon/validator_spec.rb:374:in `block (5 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
datetime
succeeds when given a valid datetime as a string 0.00011s
undefined method `pry' for #<Binding:0x00000002570718>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:391:in `new'
./spec/lib/kharon/validator_spec.rb:391:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds when given a valid datetime as a DateTime Object 0.00017s
undefined method `pry' for #<Binding:0x0000000257c1a8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:397:in `new'
./spec/lib/kharon/validator_spec.rb:397:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when given something else than a valid datetime 0.00016s
undefined method `pry' for #<Binding:0x00000000c00c60>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:403:in `new'
./spec/lib/kharon/validator_spec.rb:403:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
options
:rename
correctly renames a key when the value is valid 0.00012s
undefined method `pry' for #<Binding:0x00000000fae768>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:6:in `new'
./spec/lib/kharon/validator_spec.rb:6:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
correctly doesn't rename a key when the value is invalid 0.00012s
undefined method `pry' for #<Binding:0x00000001576858>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:12:in `new'
./spec/lib/kharon/validator_spec.rb:12:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependency
succeeds when a dependency is given as a key and respected 0.00012s
undefined method `pry' for #<Binding:0x0000000189c280>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:19:in `new'
./spec/lib/kharon/validator_spec.rb:19:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a dependency is not respected 0.00011s
undefined method `pry' for #<Binding:0x0000000191e550>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:25:in `new'
./spec/lib/kharon/validator_spec.rb:25:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependencies
succeeds when dependencies are given as an array and respected 0.00010s
undefined method `pry' for #<Binding:0x000000014cccb8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:32:in `new'
./spec/lib/kharon/validator_spec.rb:32:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when one of the dependencies is not respected 0.00010s
undefined method `pry' for #<Binding:0x0000000193be20>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:38:in `new'
./spec/lib/kharon/validator_spec.rb:38:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:required
succeeds when a not required key is not given, but filters nothing 0.00009s
undefined method `pry' for #<Binding:0x0000000194fd58>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:45:in `new'
./spec/lib/kharon/validator_spec.rb:45:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
suceeds when a key has a required option to false, and is not given, but filters nothing 0.00010s
undefined method `pry' for #<Binding:0x00000001963a38>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:51:in `new'
./spec/lib/kharon/validator_spec.rb:51:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a required key is not given 0.00011s
undefined method `pry' for #<Binding:0x00000001972d58>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:57:in `new'
./spec/lib/kharon/validator_spec.rb:57:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:in
succeeds when the value is effectively in the possible values 0.00009s
undefined method `pry' for #<Binding:0x00000001984238>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:64:in `new'
./spec/lib/kharon/validator_spec.rb:64:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds if there are no values 0.00010s
undefined method `pry' for #<Binding:0x000000023f91c8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:70:in `new'
./spec/lib/kharon/validator_spec.rb:70:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not in the possible values 0.00010s
undefined method `pry' for #<Binding:0x0000000242e968>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:76:in `new'
./spec/lib/kharon/validator_spec.rb:76:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals
succeeds when the value is equal to the given value 0.00009s
undefined method `pry' for #<Binding:0x00000002509950>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:83:in `new'
./spec/lib/kharon/validator_spec.rb:83:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not equal to the given value 0.00009s
undefined method `pry' for #<Binding:0x00000002519c10>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:89:in `new'
./spec/lib/kharon/validator_spec.rb:89:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals_key
suceeds when the key is present and equals to the other key 0.00009s
undefined method `pry' for #<Binding:0x000000025288f0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:96:in `new'
./spec/lib/kharon/validator_spec.rb:96:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key is present, but not equals to the other key 0.00016s
undefined method `pry' for #<Binding:0x00000002538b38>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:102:in `new'
./spec/lib/kharon/validator_spec.rb:102:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key to compare the validated key with is not in the hash 0.00013s
undefined method `pry' for #<Binding:0x00000002548628>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:107:in `new'
./spec/lib/kharon/validator_spec.rb:107:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:extract
etracts the data when given at true 0.00009s
undefined method `pry' for #<Binding:0x000000025579c0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:114:in `new'
./spec/lib/kharon/validator_spec.rb:114:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't extract the data when given at false 0.00010s
undefined method `pry' for #<Binding:0x00000002567e10>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:120:in `new'
./spec/lib/kharon/validator_spec.rb:120:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:cast
casts the data when given at true 0.00009s
undefined method `pry' for #<Binding:0x00000001e1d678>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:128:in `new'
./spec/lib/kharon/validator_spec.rb:128:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't cast the data when given at false 0.00010s
undefined method `pry' for #<Binding:0x00000002573940>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:134:in `new'
./spec/lib/kharon/validator_spec.rb:134:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
date
succeeds when given a valid date as a string 0.00009s
undefined method `pry' for #<Binding:0x0000000216abf0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:422:in `new'
./spec/lib/kharon/validator_spec.rb:422:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds when given a valid date as a Date Object 0.00030s
undefined method `pry' for #<Binding:0x00000001984c38>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:428:in `new'
./spec/lib/kharon/validator_spec.rb:428:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when given something else than a valid date 0.00011s
undefined method `pry' for #<Binding:0x00000000ccae98>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:434:in `new'
./spec/lib/kharon/validator_spec.rb:434:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
options
:rename
correctly renames a key when the value is valid 0.00012s
undefined method `pry' for #<Binding:0x00000001003a38>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:6:in `new'
./spec/lib/kharon/validator_spec.rb:6:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
correctly doesn't rename a key when the value is invalid 0.00011s
undefined method `pry' for #<Binding:0x00000001642fe8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:12:in `new'
./spec/lib/kharon/validator_spec.rb:12:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependency
succeeds when a dependency is given as a key and respected 0.00011s
undefined method `pry' for #<Binding:0x000000018cb1c0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:19:in `new'
./spec/lib/kharon/validator_spec.rb:19:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a dependency is not respected 0.00011s
undefined method `pry' for #<Binding:0x00000001310898>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:25:in `new'
./spec/lib/kharon/validator_spec.rb:25:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependencies
succeeds when dependencies are given as an array and respected 0.00011s
undefined method `pry' for #<Binding:0x000000014dfb60>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:32:in `new'
./spec/lib/kharon/validator_spec.rb:32:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when one of the dependencies is not respected 0.00011s
undefined method `pry' for #<Binding:0x00000001947568>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:38:in `new'
./spec/lib/kharon/validator_spec.rb:38:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:required
succeeds when a not required key is not given, but filters nothing 0.00010s
undefined method `pry' for #<Binding:0x0000000195ae60>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:45:in `new'
./spec/lib/kharon/validator_spec.rb:45:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
suceeds when a key has a required option to false, and is not given, but filters nothing 0.00010s
undefined method `pry' for #<Binding:0x00000001966b98>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:51:in `new'
./spec/lib/kharon/validator_spec.rb:51:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a required key is not given 0.00010s
undefined method `pry' for #<Binding:0x00000001451748>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:57:in `new'
./spec/lib/kharon/validator_spec.rb:57:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:in
succeeds when the value is effectively in the possible values 0.00010s
undefined method `pry' for #<Binding:0x000000023fc328>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:64:in `new'
./spec/lib/kharon/validator_spec.rb:64:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds if there are no values 0.00010s
undefined method `pry' for #<Binding:0x0000000242f5e8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:70:in `new'
./spec/lib/kharon/validator_spec.rb:70:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not in the possible values 0.00012s
undefined method `pry' for #<Binding:0x00000002502498>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:76:in `new'
./spec/lib/kharon/validator_spec.rb:76:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals
succeeds when the value is equal to the given value 0.00010s
undefined method `pry' for #<Binding:0x00000002517d70>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:83:in `new'
./spec/lib/kharon/validator_spec.rb:83:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not equal to the given value 0.00013s
undefined method `pry' for #<Binding:0x00000002526a28>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:89:in `new'
./spec/lib/kharon/validator_spec.rb:89:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals_key
suceeds when the key is present and equals to the other key 0.00010s
undefined method `pry' for #<Binding:0x0000000253c378>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:96:in `new'
./spec/lib/kharon/validator_spec.rb:96:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key is present, but not equals to the other key 0.00009s
undefined method `pry' for #<Binding:0x0000000254ba30>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:102:in `new'
./spec/lib/kharon/validator_spec.rb:102:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key to compare the validated key with is not in the hash 0.00009s
undefined method `pry' for #<Binding:0x0000000255abc0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:107:in `new'
./spec/lib/kharon/validator_spec.rb:107:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:extract
etracts the data when given at true 0.00009s
undefined method `pry' for #<Binding:0x0000000256a2c8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:114:in `new'
./spec/lib/kharon/validator_spec.rb:114:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't extract the data when given at false 0.00012s
undefined method `pry' for #<Binding:0x000000020bd400>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:120:in `new'
./spec/lib/kharon/validator_spec.rb:120:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:cast
casts the data when given at true 0.00021s
undefined method `pry' for #<Binding:0x0000000257b4b0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:128:in `new'
./spec/lib/kharon/validator_spec.rb:128:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't cast the data when given at false 0.00040s
undefined method `pry' for #<Binding:0x000000025821c0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:134:in `new'
./spec/lib/kharon/validator_spec.rb:134:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
array
succeeds when given an instance of Array 0.00024s
undefined method `pry' for #<Binding:0x00000002590c98>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:143:in `new'
./spec/lib/kharon/validator_spec.rb:143:in `block (2 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when given something else than an instance of Array 0.00026s
undefined method `pry' for #<Binding:0x0000000087f870>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:149:in `new'
./spec/lib/kharon/validator_spec.rb:149:in `block (2 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
options
:rename
correctly renames a key when the value is valid 0.00012s
undefined method `pry' for #<Binding:0x00000000d36170>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:6:in `new'
./spec/lib/kharon/validator_spec.rb:6:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
correctly doesn't rename a key when the value is invalid 0.00011s
undefined method `pry' for #<Binding:0x0000000102c7f8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:12:in `new'
./spec/lib/kharon/validator_spec.rb:12:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependency
succeeds when a dependency is given as a key and respected 0.00011s
undefined method `pry' for #<Binding:0x00000001705ca0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:19:in `new'
./spec/lib/kharon/validator_spec.rb:19:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a dependency is not respected 0.00019s
undefined method `pry' for #<Binding:0x000000019188f8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:25:in `new'
./spec/lib/kharon/validator_spec.rb:25:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependencies
succeeds when dependencies are given as an array and respected 0.00011s
undefined method `pry' for #<Binding:0x000000014c5b48>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:32:in `new'
./spec/lib/kharon/validator_spec.rb:32:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when one of the dependencies is not respected 0.00011s
undefined method `pry' for #<Binding:0x000000019410f0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:38:in `new'
./spec/lib/kharon/validator_spec.rb:38:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:required
succeeds when a not required key is not given, but filters nothing 0.00010s
undefined method `pry' for #<Binding:0x00000001958ae8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:45:in `new'
./spec/lib/kharon/validator_spec.rb:45:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
suceeds when a key has a required option to false, and is not given, but filters nothing 0.00010s
undefined method `pry' for #<Binding:0x000000014642a8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:51:in `new'
./spec/lib/kharon/validator_spec.rb:51:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a required key is not given 0.00010s
undefined method `pry' for #<Binding:0x00000001449c50>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:57:in `new'
./spec/lib/kharon/validator_spec.rb:57:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:in
succeeds when the value is effectively in the possible values 0.00013s
undefined method `pry' for #<Binding:0x000000023e42f0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:64:in `new'
./spec/lib/kharon/validator_spec.rb:64:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds if there are no values 0.00015s
undefined method `pry' for #<Binding:0x00000002430358>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:70:in `new'
./spec/lib/kharon/validator_spec.rb:70:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not in the possible values 0.00009s
undefined method `pry' for #<Binding:0x00000002509a68>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:76:in `new'
./spec/lib/kharon/validator_spec.rb:76:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals
succeeds when the value is equal to the given value 0.00009s
undefined method `pry' for #<Binding:0x0000000251d7e8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:83:in `new'
./spec/lib/kharon/validator_spec.rb:83:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not equal to the given value 0.00009s
undefined method `pry' for #<Binding:0x0000000252aa38>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:89:in `new'
./spec/lib/kharon/validator_spec.rb:89:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals_key
suceeds when the key is present and equals to the other key 0.00008s
undefined method `pry' for #<Binding:0x0000000253ff78>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:96:in `new'
./spec/lib/kharon/validator_spec.rb:96:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key is present, but not equals to the other key 0.00009s
undefined method `pry' for #<Binding:0x0000000254eb68>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:102:in `new'
./spec/lib/kharon/validator_spec.rb:102:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key to compare the validated key with is not in the hash 0.00009s
undefined method `pry' for #<Binding:0x00000002563d38>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:107:in `new'
./spec/lib/kharon/validator_spec.rb:107:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:extract
etracts the data when given at true 0.00008s
undefined method `pry' for #<Binding:0x00000001dc6198>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:114:in `new'
./spec/lib/kharon/validator_spec.rb:114:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't extract the data when given at false 0.00011s
undefined method `pry' for #<Binding:0x00000002572e78>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:120:in `new'
./spec/lib/kharon/validator_spec.rb:120:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:cast
casts the data when given at true 0.00008s
undefined method `pry' for #<Binding:0x00000002168c60>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:128:in `new'
./spec/lib/kharon/validator_spec.rb:128:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't cast the data when given at false 0.00009s
undefined method `pry' for #<Binding:0x00000001e726f0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:134:in `new'
./spec/lib/kharon/validator_spec.rb:134:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:contains
succeeds if all values are contained 0.00009s
undefined method `pry' for #<Binding:0x00000001615b38>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:220:in `new'
./spec/lib/kharon/validator_spec.rb:220:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if only some values are contained 0.00009s
undefined method `pry' for #<Binding:0x00000002183ab0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:226:in `new'
./spec/lib/kharon/validator_spec.rb:226:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if none of the values are contained 0.00023s
undefined method `pry' for #<Binding:0x000000008a13a8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:231:in `new'
./spec/lib/kharon/validator_spec.rb:231:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
hash
succeeds when given an instance of Hash 0.00020s
undefined method `pry' for #<Binding:0x00000000efea48>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:143:in `new'
./spec/lib/kharon/validator_spec.rb:143:in `block (2 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when given something else than an instance of Hash 0.00011s
undefined method `pry' for #<Binding:0x00000001070980>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:149:in `new'
./spec/lib/kharon/validator_spec.rb:149:in `block (2 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
options
:rename
correctly renames a key when the value is valid 0.00011s
undefined method `pry' for #<Binding:0x000000018be498>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:6:in `new'
./spec/lib/kharon/validator_spec.rb:6:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
correctly doesn't rename a key when the value is invalid 0.00011s
undefined method `pry' for #<Binding:0x0000000150f658>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:12:in `new'
./spec/lib/kharon/validator_spec.rb:12:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependency
succeeds when a dependency is given as a key and respected 0.00010s
undefined method `pry' for #<Binding:0x000000014de4b8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:19:in `new'
./spec/lib/kharon/validator_spec.rb:19:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a dependency is not respected 0.00010s
undefined method `pry' for #<Binding:0x0000000194c068>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:25:in `new'
./spec/lib/kharon/validator_spec.rb:25:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependencies
succeeds when dependencies are given as an array and respected 0.00010s
undefined method `pry' for #<Binding:0x000000019624f8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:32:in `new'
./spec/lib/kharon/validator_spec.rb:32:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when one of the dependencies is not respected 0.00011s
undefined method `pry' for #<Binding:0x0000000197ff58>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:38:in `new'
./spec/lib/kharon/validator_spec.rb:38:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:required
succeeds when a not required key is not given, but filters nothing 0.00010s
undefined method `pry' for #<Binding:0x000000023d0318>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:45:in `new'
./spec/lib/kharon/validator_spec.rb:45:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
suceeds when a key has a required option to false, and is not given, but filters nothing 0.00011s
undefined method `pry' for #<Binding:0x0000000242ac28>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:51:in `new'
./spec/lib/kharon/validator_spec.rb:51:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a required key is not given 0.00010s
undefined method `pry' for #<Binding:0x00000002503910>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:57:in `new'
./spec/lib/kharon/validator_spec.rb:57:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:in
succeeds when the value is effectively in the possible values 0.00009s
undefined method `pry' for #<Binding:0x000000025160d8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:64:in `new'
./spec/lib/kharon/validator_spec.rb:64:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds if there are no values 0.00010s
undefined method `pry' for #<Binding:0x00000002531248>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:70:in `new'
./spec/lib/kharon/validator_spec.rb:70:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not in the possible values 0.00009s
undefined method `pry' for #<Binding:0x0000000253ecb8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:76:in `new'
./spec/lib/kharon/validator_spec.rb:76:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals
succeeds when the value is equal to the given value 0.00009s
undefined method `pry' for #<Binding:0x000000025520d8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:83:in `new'
./spec/lib/kharon/validator_spec.rb:83:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not equal to the given value 0.00009s
undefined method `pry' for #<Binding:0x00000002566b28>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:89:in `new'
./spec/lib/kharon/validator_spec.rb:89:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals_key
suceeds when the key is present and equals to the other key 0.00009s
undefined method `pry' for #<Binding:0x000000020bf638>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:96:in `new'
./spec/lib/kharon/validator_spec.rb:96:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key is present, but not equals to the other key 0.00009s
undefined method `pry' for #<Binding:0x0000000257c950>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:102:in `new'
./spec/lib/kharon/validator_spec.rb:102:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key to compare the validated key with is not in the hash 0.00009s
undefined method `pry' for #<Binding:0x00000002588ef8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:107:in `new'
./spec/lib/kharon/validator_spec.rb:107:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:extract
etracts the data when given at true 0.00008s
undefined method `pry' for #<Binding:0x0000000258e218>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:114:in `new'
./spec/lib/kharon/validator_spec.rb:114:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't extract the data when given at false 0.00010s
undefined method `pry' for #<Binding:0x00000002598da8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:120:in `new'
./spec/lib/kharon/validator_spec.rb:120:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:cast
casts the data when given at true 0.00012s
undefined method `pry' for #<Binding:0x0000000259ad38>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:128:in `new'
./spec/lib/kharon/validator_spec.rb:128:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't cast the data when given at false 0.00010s
undefined method `pry' for #<Binding:0x00000001ec2ce0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:134:in `new'
./spec/lib/kharon/validator_spec.rb:134:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:contains
succeeds if all values are contained 0.00020s
undefined method `pry' for #<Binding:0x00000000aaea10>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:220:in `new'
./spec/lib/kharon/validator_spec.rb:220:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if only some values are contained 0.00012s
undefined method `pry' for #<Binding:0x00000000fac030>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:226:in `new'
./spec/lib/kharon/validator_spec.rb:226:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if none of the values are contained 0.00012s
undefined method `pry' for #<Binding:0x000000015c4238>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:231:in `new'
./spec/lib/kharon/validator_spec.rb:231:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:has_keys
succeeds if all keys are contained in the hash 0.00011s
undefined method `pry' for #<Binding:0x00000001558830>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:475:in `new'
./spec/lib/kharon/validator_spec.rb:475:in `block (5 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if not all keys are given in the hash 0.00011s
undefined method `pry' for #<Binding:0x000000014c4d60>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:481:in `new'
./spec/lib/kharon/validator_spec.rb:481:in `block (5 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if no keys are contained in the hash 0.00010s
undefined method `pry' for #<Binding:0x0000000193ec60>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:486:in `new'
./spec/lib/kharon/validator_spec.rb:486:in `block (5 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
boolean
succeeds when given a boolean 0.00009s
undefined method `pry' for #<Binding:0x0000000195c698>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:502:in `new'
./spec/lib/kharon/validator_spec.rb:502:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when not given a boolean 0.00009s
undefined method `pry' for #<Binding:0x0000000196a798>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:508:in `new'
./spec/lib/kharon/validator_spec.rb:508:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
options
:rename
correctly renames a key when the value is valid 0.00011s
undefined method `pry' for #<Binding:0x00000001421ac0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:6:in `new'
./spec/lib/kharon/validator_spec.rb:6:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
correctly doesn't rename a key when the value is invalid 0.00010s
undefined method `pry' for #<Binding:0x00000002428248>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:12:in `new'
./spec/lib/kharon/validator_spec.rb:12:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependency
succeeds when a dependency is given as a key and respected 0.00009s
undefined method `pry' for #<Binding:0x000000024fdee8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:19:in `new'
./spec/lib/kharon/validator_spec.rb:19:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a dependency is not respected 0.00010s
undefined method `pry' for #<Binding:0x000000025122d0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:25:in `new'
./spec/lib/kharon/validator_spec.rb:25:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependencies
succeeds when dependencies are given as an array and respected 0.00009s
undefined method `pry' for #<Binding:0x00000002531838>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:32:in `new'
./spec/lib/kharon/validator_spec.rb:32:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when one of the dependencies is not respected 0.00009s
undefined method `pry' for #<Binding:0x000000025458d8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:38:in `new'
./spec/lib/kharon/validator_spec.rb:38:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:required
succeeds when a not required key is not given, but filters nothing 0.00009s
undefined method `pry' for #<Binding:0x00000002556d18>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:45:in `new'
./spec/lib/kharon/validator_spec.rb:45:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
suceeds when a key has a required option to false, and is not given, but filters nothing 0.00009s
undefined method `pry' for #<Binding:0x0000000256b600>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:51:in `new'
./spec/lib/kharon/validator_spec.rb:51:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a required key is not given 0.00009s
undefined method `pry' for #<Binding:0x00000002570ec0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:57:in `new'
./spec/lib/kharon/validator_spec.rb:57:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:in
succeeds when the value is effectively in the possible values 0.00009s
undefined method `pry' for #<Binding:0x0000000257eb38>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:64:in `new'
./spec/lib/kharon/validator_spec.rb:64:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds if there are no values 0.00009s
undefined method `pry' for #<Binding:0x0000000258b270>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:70:in `new'
./spec/lib/kharon/validator_spec.rb:70:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not in the possible values 0.00010s
undefined method `pry' for #<Binding:0x00000002594708>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:76:in `new'
./spec/lib/kharon/validator_spec.rb:76:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals
succeeds when the value is equal to the given value 0.00010s
undefined method `pry' for #<Binding:0x00000002185bd0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:83:in `new'
./spec/lib/kharon/validator_spec.rb:83:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not equal to the given value 0.00010s
undefined method `pry' for #<Binding:0x00000001d64c40>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:89:in `new'
./spec/lib/kharon/validator_spec.rb:89:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals_key
suceeds when the key is present and equals to the other key 0.00009s
undefined method `pry' for #<Binding:0x000000012f6268>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:96:in `new'
./spec/lib/kharon/validator_spec.rb:96:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key is present, but not equals to the other key 0.00010s
undefined method `pry' for #<Binding:0x00000001def4a8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:102:in `new'
./spec/lib/kharon/validator_spec.rb:102:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key to compare the validated key with is not in the hash 0.00023s
undefined method `pry' for #<Binding:0x00000000a96410>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:107:in `new'
./spec/lib/kharon/validator_spec.rb:107:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:extract
etracts the data when given at true 0.00011s
undefined method `pry' for #<Binding:0x00000000ff9bc8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:114:in `new'
./spec/lib/kharon/validator_spec.rb:114:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't extract the data when given at false 0.00016s
undefined method `pry' for #<Binding:0x000000016afcd8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:120:in `new'
./spec/lib/kharon/validator_spec.rb:120:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:cast
casts the data when given at true 0.00011s
undefined method `pry' for #<Binding:0x00000001924748>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:128:in `new'
./spec/lib/kharon/validator_spec.rb:128:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't cast the data when given at false 0.00011s
undefined method `pry' for #<Binding:0x000000014d61f0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:134:in `new'
./spec/lib/kharon/validator_spec.rb:134:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
ssid
succeeds when given a valid SSID 0.00011s
undefined method `pry' for #<Binding:0x0000000194ab78>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:527:in `new'
./spec/lib/kharon/validator_spec.rb:527:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when not given a SSID 0.00009s
undefined method `pry' for #<Binding:0x00000001461058>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:533:in `new'
./spec/lib/kharon/validator_spec.rb:533:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
options
:rename
correctly renames a key when the value is valid 0.00011s
undefined method `pry' for #<Binding:0x000000014438f0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:6:in `new'
./spec/lib/kharon/validator_spec.rb:6:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
correctly doesn't rename a key when the value is invalid 0.00010s
undefined method `pry' for #<Binding:0x000000023fa168>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:12:in `new'
./spec/lib/kharon/validator_spec.rb:12:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependency
succeeds when a dependency is given as a key and respected 0.00011s
undefined method `pry' for #<Binding:0x00000002452638>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:19:in `new'
./spec/lib/kharon/validator_spec.rb:19:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a dependency is not respected 0.00010s
undefined method `pry' for #<Binding:0x00000002515660>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:25:in `new'
./spec/lib/kharon/validator_spec.rb:25:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependencies
succeeds when dependencies are given as an array and respected 0.00010s
undefined method `pry' for #<Binding:0x00000002526f28>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:32:in `new'
./spec/lib/kharon/validator_spec.rb:32:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when one of the dependencies is not respected 0.00010s
undefined method `pry' for #<Binding:0x0000000253f6b8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:38:in `new'
./spec/lib/kharon/validator_spec.rb:38:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:required
succeeds when a not required key is not given, but filters nothing 0.00010s
undefined method `pry' for #<Binding:0x00000002557240>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:45:in `new'
./spec/lib/kharon/validator_spec.rb:45:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
suceeds when a key has a required option to false, and is not given, but filters nothing 0.00011s
undefined method `pry' for #<Binding:0x0000000211d990>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:51:in `new'
./spec/lib/kharon/validator_spec.rb:51:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a required key is not given 0.00011s
undefined method `pry' for #<Binding:0x0000000256e148>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:57:in `new'
./spec/lib/kharon/validator_spec.rb:57:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:in
succeeds when the value is effectively in the possible values 0.00010s
undefined method `pry' for #<Binding:0x00000002168198>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:64:in `new'
./spec/lib/kharon/validator_spec.rb:64:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds if there are no values 0.00010s
undefined method `pry' for #<Binding:0x00000001e6ef00>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:70:in `new'
./spec/lib/kharon/validator_spec.rb:70:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not in the possible values 0.00012s
undefined method `pry' for #<Binding:0x00000001614d50>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:76:in `new'
./spec/lib/kharon/validator_spec.rb:76:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals
succeeds when the value is equal to the given value 0.00010s
undefined method `pry' for #<Binding:0x0000000259b3c8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:83:in `new'
./spec/lib/kharon/validator_spec.rb:83:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not equal to the given value 0.00010s
undefined method `pry' for #<Binding:0x00000001ec3cf8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:89:in `new'
./spec/lib/kharon/validator_spec.rb:89:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals_key
suceeds when the key is present and equals to the other key 0.00010s
undefined method `pry' for #<Binding:0x0000000189e6c0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:96:in `new'
./spec/lib/kharon/validator_spec.rb:96:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key is present, but not equals to the other key 0.00010s
undefined method `pry' for #<Binding:0x00000001fff2c0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:102:in `new'
./spec/lib/kharon/validator_spec.rb:102:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key to compare the validated key with is not in the hash 0.00010s
undefined method `pry' for #<Binding:0x000000025a8848>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:107:in `new'
./spec/lib/kharon/validator_spec.rb:107:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:extract
etracts the data when given at true 0.00021s
undefined method `pry' for #<Binding:0x00000000a61918>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:114:in `new'
./spec/lib/kharon/validator_spec.rb:114:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't extract the data when given at false 0.00013s
undefined method `pry' for #<Binding:0x00000001013000>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:120:in `new'
./spec/lib/kharon/validator_spec.rb:120:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:cast
casts the data when given at true 0.00011s
undefined method `pry' for #<Binding:0x000000018448f0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:128:in `new'
./spec/lib/kharon/validator_spec.rb:128:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't cast the data when given at false 0.00014s
undefined method `pry' for #<Binding:0x00000001515620>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:134:in `new'
./spec/lib/kharon/validator_spec.rb:134:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
box
succeeds when given a valid box 0.00010s
undefined method `pry' for #<Binding:0x00000001938040>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when not given a box 0.00012s
undefined method `pry' for #<Binding:0x00000001957c10>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails with an invalid top longitude 0.00014s
undefined method `pry' for #<Binding:0x00000001970c38>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails with an invalid top latitude 0.00010s
undefined method `pry' for #<Binding:0x00000001415ba8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails with an invalid down longitude 0.00010s
undefined method `pry' for #<Binding:0x00000002429300>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails with an invalid down latitude 0.00009s
undefined method `pry' for #<Binding:0x0000000250acd8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
options
:rename
correctly renames a key when the value is valid 0.00010s
undefined method `pry' for #<Binding:0x00000002523eb8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
correctly doesn't rename a key when the value is invalid 0.00011s
undefined method `pry' for #<Binding:0x0000000253a1b8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependency
succeeds when a dependency is given as a key and respected 0.00010s
undefined method `pry' for #<Binding:0x00000002555f58>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a dependency is not respected 0.00010s
undefined method `pry' for #<Binding:0x00000001dc90c8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependencies
succeeds when dependencies are given as an array and respected 0.00009s
undefined method `pry' for #<Binding:0x00000002576e88>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when one of the dependencies is not respected 0.00010s
undefined method `pry' for #<Binding:0x000000025870f8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:required
succeeds when a not required key is not given, but filters nothing 0.00009s
undefined method `pry' for #<Binding:0x00000002594e38>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
suceeds when a key has a required option to false, and is not given, but filters nothing 0.00010s
undefined method `pry' for #<Binding:0x00000002183d30>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a required key is not given 0.00010s
undefined method `pry' for #<Binding:0x000000018a7360>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:in
succeeds when the value is effectively in the possible values 0.00009s
undefined method `pry' for #<Binding:0x0000000189eaf8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds if there are no values 0.00009s
undefined method `pry' for #<Binding:0x00000001ffda60>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not in the possible values 0.00011s
undefined method `pry' for #<Binding:0x000000025ad0a0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals
succeeds when the value is equal to the given value 0.00009s
undefined method `pry' for #<Binding:0x000000025b7140>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not equal to the given value 0.00009s
undefined method `pry' for #<Binding:0x000000025c9ef8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals_key
suceeds when the key is present and equals to the other key 0.00017s
undefined method `pry' for #<Binding:0x00000000ba4f28>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key is present, but not equals to the other key 0.00012s
undefined method `pry' for #<Binding:0x00000001035b00>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key to compare the validated key with is not in the hash 0.00015s
undefined method `pry' for #<Binding:0x000000018c7a98>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:extract
etracts the data when given at true 0.00012s
undefined method `pry' for #<Binding:0x000000014c85f0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't extract the data when given at false 0.00011s
undefined method `pry' for #<Binding:0x00000001946028>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:cast
casts the data when given at true 0.00009s
undefined method `pry' for #<Binding:0x00000001465298>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't cast the data when given at false 0.00011s
undefined method `pry' for #<Binding:0x00000001424a40>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:at_least
succeeds if the box is bigger than the one given with the at_least option 0.00009s
undefined method `pry' for #<Binding:0x00000002430880>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds if the box is equal than the one given with the at_least option 0.00011s
undefined method `pry' for #<Binding:0x0000000250ffa8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the box is smaller than the one given with the at_least option 0.00011s
undefined method `pry' for #<Binding:0x00000002526dc0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
at_most
succeeds if the box is smaller than the one given with the at_most option 0.00010s
undefined method `pry' for #<Binding:0x00000002546940>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds if the box is equal than the one given with the at_most option 0.00011s
undefined method `pry' for #<Binding:0x00000002564f08>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the box is bigger than the one given with the at_most option 0.00010s
undefined method `pry' for #<Binding:0x000000020bf8b8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:551:in `new'
./spec/lib/kharon/validator_spec.rb:551:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
email
succeeds when given a valid email 0.00008s
undefined method `pry' for #<Binding:0x0000000216a2b8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:628:in `new'
./spec/lib/kharon/validator_spec.rb:628:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when not given a email 0.00021s
undefined method `pry' for #<Binding:0x00000001e6f248>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:634:in `new'
./spec/lib/kharon/validator_spec.rb:634:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
options
:rename
correctly renames a key when the value is valid 0.00018s
undefined method `pry' for #<Binding:0x00000002597d90>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:6:in `new'
./spec/lib/kharon/validator_spec.rb:6:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
correctly doesn't rename a key when the value is invalid 0.00011s
undefined method `pry' for #<Binding:0x0000000208dd18>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:12:in `new'
./spec/lib/kharon/validator_spec.rb:12:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependency
succeeds when a dependency is given as a key and respected 0.00010s
undefined method `pry' for #<Binding:0x00000001ac8658>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:19:in `new'
./spec/lib/kharon/validator_spec.rb:19:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a dependency is not respected 0.00010s
undefined method `pry' for #<Binding:0x00000001ded400>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:25:in `new'
./spec/lib/kharon/validator_spec.rb:25:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:dependencies
succeeds when dependencies are given as an array and respected 0.00010s
undefined method `pry' for #<Binding:0x000000025a3b90>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:32:in `new'
./spec/lib/kharon/validator_spec.rb:32:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when one of the dependencies is not respected 0.00010s
undefined method `pry' for #<Binding:0x000000025b5930>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:38:in `new'
./spec/lib/kharon/validator_spec.rb:38:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:required
succeeds when a not required key is not given, but filters nothing 0.00009s
undefined method `pry' for #<Binding:0x000000025bf9a8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:45:in `new'
./spec/lib/kharon/validator_spec.rb:45:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
suceeds when a key has a required option to false, and is not given, but filters nothing 0.00010s
undefined method `pry' for #<Binding:0x000000025ca1a0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:51:in `new'
./spec/lib/kharon/validator_spec.rb:51:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when a required key is not given 0.00009s
undefined method `pry' for #<Binding:0x000000025dddb8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:57:in `new'
./spec/lib/kharon/validator_spec.rb:57:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:in
succeeds when the value is effectively in the possible values 0.00015s
undefined method `pry' for #<Binding:0x00000000d25f78>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:64:in `new'
./spec/lib/kharon/validator_spec.rb:64:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
succeeds if there are no values 0.00016s
undefined method `pry' for #<Binding:0x000000015769c0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:70:in `new'
./spec/lib/kharon/validator_spec.rb:70:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not in the possible values 0.00011s
undefined method `pry' for #<Binding:0x000000015593e8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:76:in `new'
./spec/lib/kharon/validator_spec.rb:76:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals
succeeds when the value is equal to the given value 0.00010s
undefined method `pry' for #<Binding:0x000000014dc8e8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:83:in `new'
./spec/lib/kharon/validator_spec.rb:83:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails if the value is not equal to the given value 0.00010s
undefined method `pry' for #<Binding:0x00000001954e98>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:89:in `new'
./spec/lib/kharon/validator_spec.rb:89:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:equals_key
suceeds when the key is present and equals to the other key 0.00010s
undefined method `pry' for #<Binding:0x00000001971020>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:96:in `new'
./spec/lib/kharon/validator_spec.rb:96:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key is present, but not equals to the other key 0.00012s
undefined method `pry' for #<Binding:0x000000023ce248>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:102:in `new'
./spec/lib/kharon/validator_spec.rb:102:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
fails when the key to compare the validated key with is not in the hash 0.00010s
undefined method `pry' for #<Binding:0x000000024540a0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:107:in `new'
./spec/lib/kharon/validator_spec.rb:107:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:extract
etracts the data when given at true 0.00009s
undefined method `pry' for #<Binding:0x000000025124d8>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:114:in `new'
./spec/lib/kharon/validator_spec.rb:114:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't extract the data when given at false 0.00010s
undefined method `pry' for #<Binding:0x000000025344c0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:120:in `new'
./spec/lib/kharon/validator_spec.rb:120:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
:cast
casts the data when given at true 0.00008s
undefined method `pry' for #<Binding:0x00000002550f58>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:128:in `new'
./spec/lib/kharon/validator_spec.rb:128:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
doesn't cast the data when given at false 0.00011s
undefined method `pry' for #<Binding:0x0000000256d6d0>
./lib/kharon/validator.rb:26:in `initialize'
./spec/lib/kharon/validator_spec.rb:134:in `new'
./spec/lib/kharon/validator_spec.rb:134:in `block (3 levels) in <top (required)>'
24    #   @validator = Kharon::Validator.new({key: "value"})
25    def initialize(datas)
26      binding.pry
27      @datas      = Hash[datas.map { |k, v| [k.to_sym, v] }]
28      @processors = Kharon.processors.map { |classname| classname.new(self) }
29# Install the coderay gem to get syntax highlighting
Kharon
Can not use exceptions 0.00007s
undefined local variable or method `useX' for Kharon:Module
./lib/kharon.rb:14:in `use_exceptions'
./spec/lib/kharon_spec.rb:5:in `block (2 levels) in <top (required)>'
12  # @param [Boolean] use TRUE if you want to use exceptions, FALSE else.
13  def self.use_exceptions(use = true)
14    @@use_exceptions = useX
15  end
16
17# Install the coderay gem to get syntax highlighting
Can use exceptions 0.00007s
undefined local variable or method `useX' for Kharon:Module
./lib/kharon.rb:14:in `use_exceptions'
./spec/lib/kharon_spec.rb:10:in `block (2 levels) in <top (required)>'
12  # @param [Boolean] use TRUE if you want to use exceptions, FALSE else.
13  def self.use_exceptions(use = true)
14    @@use_exceptions = useX
15  end
16
17# Install the coderay gem to get syntax highlighting