diff --git a/spec/lib/hubspot/ticket_properties_spec.rb b/spec/lib/hubspot/ticket_properties_spec.rb index e309881e..2999c013 100644 --- a/spec/lib/hubspot/ticket_properties_spec.rb +++ b/spec/lib/hubspot/ticket_properties_spec.rb @@ -1,13 +1,5 @@ describe Hubspot::TicketProperties do describe '.create' do - context 'with no valid parameters' do - it 'should return nil' do - VCR.use_cassette 'ticket_fail_to_create_property' do - expect(Hubspot::TicketProperties.create!({})).to be(nil) - end - end - end - context 'with all valid parameters' do let(:params) do { @@ -37,5 +29,13 @@ end end end + + context 'with invalid parameters' do + it 'should return nil' do + VCR.use_cassette 'ticket_fail_to_create_property' do + expect(Hubspot::TicketProperties.create!({})).to be(nil) + end + end + end end end