Skip to content

Commit

Permalink
nicer ticket_properties_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Yves committed Nov 7, 2024
1 parent 7756a86 commit cd43ffb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/lib/hubspot/ticket_properties_spec.rb
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down Expand Up @@ -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

0 comments on commit cd43ffb

Please sign in to comment.