Sha256: 4dc229743b2105f5183870dc02c6d6c9613e08297ea004ac31f785aa4d23572d
Contents?: true
Size: 388 Bytes
Versions: 3
Compression:
Stored size: 388 Bytes
Contents
# encoding: utf-8 RSpec.describe Loaf::OptionsValidator, '.valid?' do let(:klass) { Class.extend Loaf::OptionsValidator } it 'validates succesfully known option' do expect(klass.valid?(crumb_length: 10)).to eq(true) end it 'validates unknown option with an error' do expect { klass.valid?(invalid_param: true) }.to raise_error(Loaf::InvalidOptions) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loaf-0.7.0 | spec/unit/options_validator_spec.rb |
loaf-0.6.2 | spec/unit/options_validator_spec.rb |
loaf-0.6.1 | spec/unit/options_validator_spec.rb |