spec/email_template_spec.rb in govdelivery-tms-0.8.5 vs spec/email_template_spec.rb in govdelivery-tms-0.8.7

- old
+ new

@@ -54,10 +54,10 @@ it 'should clear the links property after a successful post' do @template.links[:from_address] = '1' expect(@template.client).to receive('post').with(@template).and_return(double('response', status: 201, body: {})) @template.post links = @template.to_json[:_links] - expect(links[:from_address]).to be_nil + expect(links).to be_nil end it 'should not clear the links property after an invalid post' do @template.links[:from_address] = '1' expect(@template.client).to receive('post').with(@template).and_return(double('response', status: 400, body: {}))