robocall 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,17 +2,19 @@ require 'spec_helper'
2
2
 
3
3
  describe 'robocall' do
4
4
 
5
-
5
+ Robocall.sid = 'x'
6
+ Robocall.auth_token = 'x'
7
+ Robocall.from_phone_number = '555 555 5555'
8
+ Robocall.base_path = "http://localhost:3000"
9
+
10
+ before(:each) do
11
+ @twilio = double('Twilio')
12
+ @twilio.stub_chain(:account, :calls, :create).and_return(true)
13
+ Robocall.stub(:get_twilio).and_return(@twilio)
14
+ end
6
15
 
7
16
  it 'should create a record' do
8
-
9
- Robocall.sid = 'x'
10
- Robocall.auth_token = 'x'
11
- Robocall.from_phone_number = '555 555 5555'
12
- Robocall.base_path = "http://localhost:3000"
13
- # Needs mocking
14
- # Robocall.send_robocall(to: "555 555 5555", text: "Hello you there")
15
-
17
+ Robocall.send_robocall(to: "555 555 5555", text: "Hello you there")
16
18
  end
17
19
 
18
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robocall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reto Stamm