simple_desk 0.4.0 → 1.0.0

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.
data/spec/my_spec.rb DELETED
@@ -1,37 +0,0 @@
1
- require 'spec_helper'
2
- require "simple_desk"
3
-
4
- describe SimpleDesk do
5
- before :each do
6
- @phone = {phone_number: "555#{Random.rand(10_000_000 - 1_000_000)}"}
7
- @user = {first_name: "Elijah", last_name: "Murray"}.merge!(@phone)
8
- ENV['SIMPLE_DESK_TOKEN'] = 'ucMKQtZ0CQkgfGzTj6lOJe2VRvoRHM8z'
9
- end
10
-
11
- describe "#build_url" do
12
- it "build_url returns a string" do
13
- SimpleDesk.build_url.should eql "https://www.getsimpledesk.com?token=ucMKQtZ0CQkgfGzTj6lOJe2VRvoRHM8z"
14
- end
15
- end
16
-
17
- describe "#add_customer" do
18
- it "add customer successfully" do
19
- # skip("disabled to not call API")
20
- request = SimpleDesk.add_customer(@user)
21
- request.response.code.should eql "200"
22
- end
23
- end
24
-
25
- describe "#message_customer" do
26
- it "message customer successfully" do
27
- # skip("disabled to not call API")
28
- message = "Wooot"
29
- to = {to: @phone[:phone_number]}
30
- params = {text: message}.merge!(to)
31
- request = SimpleDesk.message_customer(params)
32
- request.response.code.should eql "200"
33
- end
34
- end
35
-
36
-
37
- end