spec/lib/hubspot/deal_properties_spec.rb in hubspot-ruby-0.2.1 vs spec/lib/hubspot/deal_properties_spec.rb in hubspot-ruby-0.3.0

- old
+ new

@@ -1,9 +1,17 @@ describe Hubspot::DealProperties do describe '.add_default_parameters' do - subject { Hubspot::DealProperties.add_default_parameters({}) } + let(:opts) { {} } + subject { Hubspot::DealProperties.add_default_parameters(opts) } context 'default parameters' do - its([:property]) { should == 'email' } + context 'without property parameter' do + its([:property]) { should == 'email' } + end + + context 'with property parameter' do + let(:opts) { {property: 'dealname' } } + its([:property]) { should == 'dealname'} + end end end let(:example_groups) do VCR.use_cassette('deal_groups_example', record: :once) do