spec/phaxio_spec.rb in phaxio-2.1.0.pre vs spec/phaxio_spec.rb in phaxio-2.1.0

- old
+ new

@@ -11,10 +11,16 @@ it 'sets the api secret' do subject.api_secret = 'test-api-secret' expect(subject.api_secret).to eq('test-api-secret') end - it 'sets the callback token' do + it 'sets the webhook token' do + subject.webhook_token = 'test-webhook-token' + expect(subject.webhook_token).to eq('test-webhook-token') + end + + it 'sets and gets the webhook token as callback_token' do subject.callback_token = 'test-callback-token' expect(subject.callback_token).to eq('test-callback-token') + expect(subject.webhook_token).to eq('test-callback-token') end end