diff --git a/praxis-blueprints.gemspec b/praxis-blueprints.gemspec index 590a5e8..64072bf 100644 --- a/praxis-blueprints.gemspec +++ b/praxis-blueprints.gemspec @@ -28,7 +28,7 @@ Gem::Specification.new do |spec| spec.require_paths = ['lib'] spec.add_runtime_dependency('randexp', ['~> 0']) - spec.add_runtime_dependency('attributor', ['>= 5.0.2']) + spec.add_runtime_dependency('attributor', ['>= 5.1']) spec.add_runtime_dependency('activesupport', ['>= 3']) spec.add_development_dependency 'bundler', '~> 1.6' diff --git a/spec/praxis-blueprints/blueprint_spec.rb b/spec/praxis-blueprints/blueprint_spec.rb index 9b96301..ed683f2 100644 --- a/spec/praxis-blueprints/blueprint_spec.rb +++ b/spec/praxis-blueprints/blueprint_spec.rb @@ -226,11 +226,14 @@ end it 'outputs examples for leaf values using the provided example' do + output[:attributes][:name][:example].should eq example.name output[:attributes][:age][:example].should eq example.age + output[:attributes][:aliases].should have_key(:example) + output[:attributes][:aliases][:example].should eq example.aliases.dump + output[:attributes][:full_name].should_not have_key(:example) - output[:attributes][:aliases].should_not have_key(:example) parents_attributes = output[:attributes][:parents][:type][:attributes] parents_attributes[:father][:example].should eq example.parents.father