sms-spec 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 92bb43dcaef54a34db7011ca58bc9227438ae052
4
+ data.tar.gz: 7d9fcdcb6e68944bd80b28ab89b11fe09877ab64
5
+ SHA512:
6
+ metadata.gz: 2fb64036a095aadd703385b226b352fd0b5b2d8e1143dfec0478f8b1aae87b5da8dc22601380e7b912b97fc431088cd89827b960957170988473ccc5e8d78246
7
+ data.tar.gz: 0fbd7ac0f99f4e9edbdcb23dbd328a1d8665e2656f1fb8119d5a0908271139850f92d7c0dffb01d16d51c7a6bc0342084507a361650083a2f4b2e42cec796928
@@ -0,0 +1 @@
1
+ 2.1.1
@@ -4,7 +4,8 @@ An RSpec DSL and Cucumber steps to test SMS interactions with your
4
4
  Ruby on Rails application.
5
5
 
6
6
  Currently this gem only supports testing SMS messageing using the
7
- [twilio-ruby](https://github.com/twilio/twilio-ruby) gem.
7
+ [twilio-ruby](https://github.com/twilio/twilio-ruby) and
8
+ [lookout-clickatell](https://github.com/lookout/clickatell) gem.
8
9
 
9
10
  ##Setup
10
11
  Add the sms-spec gem to your Gemfile:
@@ -15,36 +16,25 @@ end
15
16
  </pre>
16
17
 
17
18
  ## RSpec
18
- In your spec\_helper.rb file add the following:
19
- <pre>
20
- require 'sms_spec'
21
- </pre>
19
+ In your spec\_helper.rb file configure a driver and include helper and matcher methods.
22
20
 
23
- If you want to have the helpers available in all of your example groups,
24
- you can add the following to your spec_helper.rb:
25
21
  <pre>
22
+ require 'sms\_spec'
23
+
26
24
  Spec::Runner.configure do |config|
27
25
  config.include(SmsSpec::Helpers)
28
26
  config.include(SmsSpec::Matchers)
29
27
  end
30
- </pre>
31
28
 
32
- Otherwise you will have to incliude the helpers and matchers in any
33
- example where you use them:
34
-
35
- <pre>
36
- describe "MyController" do
37
- include SmsSpec::Helpers
38
- include SmsSpec::Matchers
39
- end
29
+ SmsSpec.driver = :twilio-ruby #this can be any available sms-spec driver
40
30
  </pre>
41
31
 
42
32
  ## Cucumber
43
33
  Add the folloing to you env.rb file:
44
34
 
45
35
  <pre>
46
- require 'sms_spec'
47
- require 'sms_spec/cucumber'
36
+ require 'sms\_spec'
37
+ require 'sms\_spec/cucumber'
48
38
  </pre>
49
39
 
50
40
  This loads the sms\_spec RSpec helpers into your cucumber wold. Then,
data/Rakefile CHANGED
@@ -1 +1,7 @@
1
1
  require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+
@@ -20,11 +20,11 @@ Given /^all text messages have been read$/ do
20
20
  end
21
21
 
22
22
  Then /^"([^"]*)" should receive a text message$/ do |phone_number|
23
- messages_for(phone_number).should_not be_empty
23
+ expect(messages_for(phone_number)).to_not be_empty
24
24
  end
25
25
 
26
26
  Then /^"([^"]*)" should receive no text messages$/ do |phone_number|
27
- messages_for(phone_number).should be_empty
27
+ expect(messages_for(phone_number)).to be_empty
28
28
  end
29
29
 
30
30
  When /^"([^"]*?)" opens? the text message$/ do |mobile_number|
@@ -32,9 +32,9 @@ When /^"([^"]*?)" opens? the text message$/ do |mobile_number|
32
32
  end
33
33
 
34
34
  Then /^I should see "([^"]*)" in the text message body$/ do |content|
35
- current_text_message.should have_body(content)
35
+ expect(current_text_message).to have_body(content)
36
36
  end
37
37
 
38
38
  Then /^I should see the following in the text message body:$/ do |content|
39
- current_text_message.should have_body(content)
39
+ expect(current_text_message).to have_body(content)
40
40
  end
@@ -12,6 +12,4 @@ module SmsSpec
12
12
  def self.driver=(driver_sym)
13
13
  require "sms_spec/drivers/#{driver_sym.to_s}"
14
14
  end
15
-
16
- SmsSpec.driver = :"twilio-ruby"
17
15
  end
@@ -0,0 +1,20 @@
1
+ module Clickatell
2
+ class API
3
+ include SmsSpec::Helpers
4
+
5
+ def self.authenticate(api_key, login, password)
6
+ new(api_key, login, password)
7
+ end
8
+
9
+ def initialize(api_key, login, password)
10
+ @api_key = api_key
11
+ @login = login
12
+ @password = password
13
+ end
14
+
15
+ def send_message(dest, body, opts={})
16
+ from = opts[:from]
17
+ add_message SmsSpec::Message.new(:number => dest, :from => from, :body => body)
18
+ end
19
+ end
20
+ end
@@ -1,34 +1,39 @@
1
- class Twilio::REST::Client
1
+ class Twilio
2
+ class REST
3
+ class Client
2
4
 
3
- def initialize(account_sid, auth_token)
4
- $account_sid = account_sid
5
- end
5
+ def initialize(account_sid, auth_token)
6
+ $account_sid = account_sid
7
+ end
6
8
 
7
- class Messages
8
- include SmsSpec::Helpers
9
+ class Messages
10
+ include SmsSpec::Helpers
9
11
 
10
- def create(opts={})
11
- to = opts[:to]
12
- body = opts[:body]
13
- add_message SmsSpec::Message.new(:number => to, :body => body)
14
- end
15
- end
12
+ def create(opts={})
13
+ to = opts[:to]
14
+ body = opts[:body]
15
+ from = opts[:from]
16
+ add_message SmsSpec::Message.new(:number => to, :from => from, :body => body)
17
+ end
18
+ end
16
19
 
17
- class Sms
18
- def messages
19
- return Messages.new
20
- end
21
- end
20
+ class Sms
21
+ def messages
22
+ return Messages.new
23
+ end
24
+ end
22
25
 
23
- class Account
24
- def sms
25
- return Sms.new
26
- end
27
- end
26
+ class Account
27
+ def sms
28
+ return Sms.new
29
+ end
30
+ end
28
31
 
29
- def account
30
- account = Account.new
31
- account.class.send(:define_method, :sid, lambda { $account_sid })
32
- account
32
+ def account
33
+ account = Account.new
34
+ account.class.send(:define_method, :sid, lambda { $account_sid })
35
+ account
36
+ end
37
+ end
33
38
  end
34
39
  end
@@ -36,5 +36,14 @@ module SmsSpec
36
36
 
37
37
  base_options.merge! opts
38
38
  end
39
+
40
+ def clkatel_message(from, text, opts={})
41
+ base_options = {
42
+ "From"=> from,
43
+ "Text" => text
44
+ }
45
+
46
+ base_options.merge! opts
47
+ end
39
48
  end
40
49
  end
@@ -6,12 +6,22 @@ module SmsSpec
6
6
  mobile_device.messages.count > 0
7
7
  end
8
8
 
9
- failure_message_for_should do |mobile_device|
10
- "expected the mobile device '#{mobile_device.number}' to have text messages but it did not"
11
- end
9
+ if Gem::Version.new(RSpec::Core::Version::STRING) >= Gem::Version.new("3.0.0.beta2")
10
+ failure_message do |mobile_device|
11
+ "expected the mobile device '#{mobile_device.number}' to have text messages but it did not"
12
+ end
13
+
14
+ failure_message_when_negated do |mobile_device|
15
+ "expected the mobile device '#{mobile_device.number}' to have no text messages but it did"
16
+ end
17
+ else
18
+ failure_message_for_should do |mobile_device|
19
+ "expected the mobile device '#{mobile_device.number}' to have text messages but it did not"
20
+ end
12
21
 
13
- failure_message_for_should_not do |mobile_device|
14
- "expected the mobile device '#{mobile_device.number}' to have no text messages but it did"
22
+ failure_message_for_should_not do |mobile_device|
23
+ "expected the mobile device '#{mobile_device.number}' to have no text messages but it did"
24
+ end
15
25
  end
16
26
  end
17
27
 
@@ -19,14 +29,6 @@ module SmsSpec
19
29
  match do |message|
20
30
  message.body == expected_body
21
31
  end
22
-
23
- #failure_message_for_should do |mobile_device|
24
- #"expected the mobile device '#{mobile_device.number}' to have text messages but it did not"
25
- #end
26
-
27
- #failure_message_for_should_not do |mobile_device|
28
- #"expected the mobile device '#{mobile_device.number}' to have no text messages but it did"
29
- #end
30
32
  end
31
33
 
32
34
  end
@@ -2,12 +2,14 @@ module SmsSpec
2
2
  class Message
3
3
  attr_accessor :number
4
4
  attr_accessor :body
5
+ attr_accessor :from
5
6
 
6
7
  include SmsSpec::Util
7
8
 
8
9
  def initialize(opts={})
9
10
  @number = sanitize opts[:number]
10
11
  @body = opts[:body]
12
+ @from = opts[:from]
11
13
  end
12
14
  end
13
15
  end
@@ -1,3 +1,3 @@
1
1
  module SmsSpec
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = SmsSpec::VERSION
8
8
  s.authors = ["Chris Rittersdorf"]
9
9
  s.email = ["manlycode@gmail.com"]
10
- s.homepage = "https://github.com/mhs/sms-spec"
10
+ s.homepage = "https://github.com/manlycode/sms-spec"
11
11
  s.summary = %q{Test SMS interactions with RSpec and Cucumber}
12
12
  s.description = %q{SMS Spec gives you an RSpec DSL and Cucumber steps to test SMS interactions.}
13
13
 
@@ -18,13 +18,9 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_dependency 'rspec'
22
-
23
- s.add_development_dependency "rspec"
21
+ s.add_dependency 'rspec', "~> 2.11"
24
22
  s.add_development_dependency "rake"
25
- s.add_development_dependency "twilio-ruby"
26
- s.add_development_dependency "guard-rspec"
23
+ s.add_development_dependency "twilio-ruby", "~> 3.0"
24
+ s.add_development_dependency "lookout-clickatell", "~> 0.8"
27
25
  s.add_development_dependency "pry"
28
- s.add_development_dependency "rb-fsevent"
29
- s.add_development_dependency "growl"
30
26
  end
@@ -0,0 +1,32 @@
1
+ require 'spec_helper'
2
+
3
+ describe SmsSpec do
4
+ include SmsSpec::Helpers
5
+
6
+ before do
7
+ require 'clickatell'
8
+ SmsSpec.driver = :"clickatell"
9
+ @to_number = '27999900001' # TEST NUMBER
10
+ @from_number = '27999900005' # TEST NUMBER
11
+ @api = Clickatell::API.authenticate(
12
+ ENV["CLICKATELL_API_KEY"],
13
+ ENV["CLICKATELL_LOGIN"],
14
+ ENV["CLICKATELL_PASSWORD"]
15
+ )
16
+
17
+ SmsSpec::Data.clear_messages
18
+ end
19
+
20
+ describe "the clickatell driver" do
21
+ it "captures the outgoing message for testing" do
22
+ @api.send_message(@to_number, 'Hello from clickatell')
23
+ open_last_text_message_for(@to_number)
24
+
25
+ expect(current_text_message).to have_body("Hello from clickatell")
26
+ expect(current_text_message.number).to eql(@to_number)
27
+ expect(current_text_message.from).to be_nil
28
+ end
29
+
30
+ end
31
+ end
32
+
@@ -1,5 +1,4 @@
1
- require 'twilio-ruby'
2
- require File.join(File.dirname(__FILE__), *%w[spec_helper])
1
+ require 'spec_helper'
3
2
 
4
3
  describe SmsSpec do
5
4
  include SmsSpec::Helpers
@@ -25,7 +24,7 @@ describe SmsSpec do
25
24
  )
26
25
 
27
26
  open_last_text_message_for("+16105557069")
28
- current_text_message.should_not be_nil
27
+ expect(current_text_message).to_not be_nil
29
28
  end
30
29
 
31
30
  it "allows for sid method calls on the account object" do
@@ -40,9 +39,24 @@ describe SmsSpec do
40
39
  )
41
40
 
42
41
  open_last_text_message_for("+16105557069")
43
- current_text_message.should_not be_nil
44
- @client.account.should respond_to(:sid)
45
- @client.account.sid.should be(account_sid)
42
+ expect(current_text_message).to_not be_nil
43
+ expect(@client.account).to respond_to(:sid)
44
+ expect(@client.account.sid).to be(account_sid)
45
+ end
46
+
47
+ it "records the from number for a message" do
48
+ account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
49
+ auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
50
+
51
+ @client = Twilio::REST::Client.new account_sid, auth_token
52
+ @client.account.sms.messages.create(
53
+ :from => '+14159341234',
54
+ :to => '+16105557069',
55
+ :body => 'Hey there!'
56
+ )
57
+
58
+ open_last_text_message_for("+16105557069")
59
+ expect(current_text_message.from).to eq('+14159341234')
46
60
  end
47
61
 
48
62
  end
@@ -10,15 +10,15 @@ describe SmsSpec::Helpers do
10
10
  describe ".messages" do
11
11
  describe "before any messages have been sent" do
12
12
  it "is empty" do
13
- messages.should be_empty
13
+ expect(messages).to be_empty
14
14
  end
15
15
  end
16
16
 
17
17
  describe "after a message has been sent" do
18
18
  it "adds a message" do
19
- lambda {
19
+ expect(lambda {
20
20
  add_message SmsSpec::Message.new :number => "5555555512", :body => "Hello there"
21
- }.should change(messages, :count).by(1)
21
+ }).to change(messages, :count).by(1)
22
22
  end
23
23
  end
24
24
  end
@@ -26,25 +26,27 @@ describe SmsSpec::Helpers do
26
26
  describe ".set_current_number" do
27
27
  it "assigns the current number" do
28
28
  set_current_number "555551234"
29
- current_number.should == "555551234"
29
+ expect(current_number).to eql("555551234")
30
30
  end
31
31
 
32
32
  it "sanitizes phone nubmers" do
33
33
  set_current_number "+1555551234"
34
- current_number.should == "555551234"
34
+ expect(current_number).to eql( "555551234")
35
35
 
36
36
  set_current_number "1-616-555-2929"
37
- current_number.should == "6165552929"
37
+ expect(current_number).to eql("6165552929")
38
38
  end
39
39
  end
40
40
 
41
- describe ".clear_sms_messages" do
41
+ describe ".clear_messages" do
42
42
  it "removes all messages" do
43
43
  add_message SmsSpec::Message.new :number => "5555555512", :body => "Hello there"
44
44
  add_message SmsSpec::Message.new :number => "5555555512", :body => "Hello there"
45
45
  add_message SmsSpec::Message.new :number => "5555555512", :body => "Hello there"
46
46
 
47
- messages.should have(3).messages
47
+ expect(messages.count).to eql(3)
48
+ clear_messages
49
+ expect(messages.count).to eql(0)
48
50
  end
49
51
  end
50
52
 
@@ -55,7 +57,7 @@ describe SmsSpec::Helpers do
55
57
  end
56
58
 
57
59
  it "returns nil" do
58
- current_text_message.should be_nil
60
+ expect(current_text_message).to be_nil
59
61
  end
60
62
  end
61
63
 
@@ -70,7 +72,7 @@ describe SmsSpec::Helpers do
70
72
 
71
73
  describe "and no messages have been opened" do
72
74
  it "should be nil" do
73
- current_text_message.should be_nil
75
+ expect(current_text_message).to be_nil
74
76
  end
75
77
  end
76
78
 
@@ -80,13 +82,13 @@ describe SmsSpec::Helpers do
80
82
  end
81
83
 
82
84
  it "returns the last open text message" do
83
- current_text_message.should == message1
85
+ expect(current_text_message).to eql(message1)
84
86
 
85
87
  open_last_text_message_for("5555555513")
86
- current_text_message.should be_nil
88
+ expect(current_text_message).to be_nil
87
89
 
88
90
  open_last_text_message_for("5555555512")
89
- current_text_message.should == message2
91
+ expect(current_text_message).to eql(message2)
90
92
  end
91
93
  end
92
94
  end
@@ -99,11 +101,11 @@ describe SmsSpec::Helpers do
99
101
  }
100
102
 
101
103
  it "modifies the From attribute" do
102
- message["From"].should eql("+16165559982")
104
+ expect(message["From"]).to eql("+16165559982")
103
105
  end
104
106
 
105
107
  it "Modifies the Body attribute" do
106
- message["Body"].should eql("Ahoy!")
108
+ expect(message["Body"]).to eql("Ahoy!")
107
109
  end
108
110
  end
109
111
 
@@ -113,10 +115,37 @@ describe SmsSpec::Helpers do
113
115
  }
114
116
 
115
117
  it "overrides the specified attributes" do
116
- message["ToZip"].should eql("49506")
117
- message["ToCity"].should eql("Detroit")
118
- message["Body"].should eql("Ahoy!")
119
- message["From"].should eql("+16165559982")
118
+ expect(message["ToZip"]).to eql("49506")
119
+ expect(message["ToCity"]).to eql("Detroit")
120
+ expect(message["Body"]).to eql("Ahoy!")
121
+ expect(message["From"]).to eql("+16165559982")
122
+ end
123
+ end
124
+ end
125
+
126
+ describe ".clkatel_message" do
127
+ context "with defaults" do
128
+ let(:message) {
129
+ clkatel_message("+16165559982", "Ahoy!")
130
+ }
131
+
132
+ it "modifies the From attribute" do
133
+ expect(message["From"]).to eql("+16165559982")
134
+ end
135
+
136
+ it "Modifies the Body attribute" do
137
+ expect(message["Text"]).to eql("Ahoy!")
138
+ end
139
+ end
140
+
141
+ describe "Overriding options" do
142
+ let(:message) {
143
+ clkatel_message("+16165559982", "Ahoy!")
144
+ }
145
+
146
+ it "overrides the specified attributes" do
147
+ expect(message["Text"]).to eql("Ahoy!")
148
+ expect(message["From"]).to eql("+16165559982")
120
149
  end
121
150
  end
122
151
  end
@@ -24,7 +24,7 @@ describe SmsSpec::Matchers do
24
24
  "expected #{@matcher.inspect} to match when provided #{@object_to_test_match.inspect}, but it did not"
25
25
  end
26
26
 
27
- def negative_failure_message
27
+ def failure_message_when_negated
28
28
  "expected #{@matcher.inspect} not to match when provided #{@object_to_test_match.inspect}, but it did"
29
29
  end
30
30
  end
@@ -43,7 +43,7 @@ describe SmsSpec::Matchers do
43
43
  describe "when the mobile device has no text messages" do
44
44
  it "should not match" do
45
45
  device = SmsSpec::MobileDevice.new(:number => mobile_number)
46
- have_text_messages.should_not match(device)
46
+ expect(have_text_messages).to_not match(device)
47
47
  end
48
48
  end
49
49
 
@@ -52,7 +52,7 @@ describe SmsSpec::Matchers do
52
52
  add_message SmsSpec::Message.new(:number => mobile_number, :body => "something")
53
53
 
54
54
  device = SmsSpec::MobileDevice.new(mobile_number)
55
- have_text_messages.should match(device)
55
+ expect(have_text_messages).to match(device)
56
56
  end
57
57
  end
58
58
  end
@@ -62,7 +62,7 @@ describe SmsSpec::Matchers do
62
62
  it "matches" do
63
63
  message = SmsSpec::Message.new(:number => mobile_number, :body => "something")
64
64
 
65
- have_body("something").should match(message)
65
+ expect(have_body("something")).to match(message)
66
66
  end
67
67
  end
68
68
  end
metadata CHANGED
@@ -1,142 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sms-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
5
- prerelease:
4
+ version: 0.1.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chris Rittersdorf
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-21 00:00:00.000000000 Z
11
+ date: 2014-03-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: '2.11'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: rspec
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
23
  requirements:
43
- - - ! '>='
24
+ - - "~>"
44
25
  - !ruby/object:Gem::Version
45
- version: '0'
26
+ version: '2.11'
46
27
  - !ruby/object:Gem::Dependency
47
28
  name: rake
48
29
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
30
  requirements:
51
- - - ! '>='
31
+ - - ">="
52
32
  - !ruby/object:Gem::Version
53
33
  version: '0'
54
34
  type: :development
55
35
  prerelease: false
56
36
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
37
  requirements:
59
- - - ! '>='
38
+ - - ">="
60
39
  - !ruby/object:Gem::Version
61
40
  version: '0'
62
41
  - !ruby/object:Gem::Dependency
63
42
  name: twilio-ruby
64
43
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
44
  requirements:
67
- - - ! '>='
45
+ - - "~>"
68
46
  - !ruby/object:Gem::Version
69
- version: '0'
47
+ version: '3.0'
70
48
  type: :development
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
51
  requirements:
75
- - - ! '>='
52
+ - - "~>"
76
53
  - !ruby/object:Gem::Version
77
- version: '0'
54
+ version: '3.0'
78
55
  - !ruby/object:Gem::Dependency
79
- name: guard-rspec
56
+ name: lookout-clickatell
80
57
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
58
  requirements:
83
- - - ! '>='
59
+ - - "~>"
84
60
  - !ruby/object:Gem::Version
85
- version: '0'
61
+ version: '0.8'
86
62
  type: :development
87
63
  prerelease: false
88
64
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
65
  requirements:
91
- - - ! '>='
66
+ - - "~>"
92
67
  - !ruby/object:Gem::Version
93
- version: '0'
68
+ version: '0.8'
94
69
  - !ruby/object:Gem::Dependency
95
70
  name: pry
96
71
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
111
- name: rb-fsevent
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: growl
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
72
  requirements:
131
- - - ! '>='
73
+ - - ">="
132
74
  - !ruby/object:Gem::Version
133
75
  version: '0'
134
76
  type: :development
135
77
  prerelease: false
136
78
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
79
  requirements:
139
- - - ! '>='
80
+ - - ">="
140
81
  - !ruby/object:Gem::Version
141
82
  version: '0'
142
83
  description: SMS Spec gives you an RSpec DSL and Cucumber steps to test SMS interactions.
@@ -146,8 +87,8 @@ executables: []
146
87
  extensions: []
147
88
  extra_rdoc_files: []
148
89
  files:
149
- - .gitignore
150
- - .rvmrc
90
+ - ".gitignore"
91
+ - ".ruby-version"
151
92
  - Gemfile
152
93
  - Guardfile
153
94
  - README.markdown
@@ -159,6 +100,7 @@ files:
159
100
  - lib/sms_spec.rb
160
101
  - lib/sms_spec/cucumber.rb
161
102
  - lib/sms_spec/data.rb
103
+ - lib/sms_spec/drivers/clickatell.rb
162
104
  - lib/sms_spec/drivers/twilio-ruby.rb
163
105
  - lib/sms_spec/helpers.rb
164
106
  - lib/sms_spec/matchers.rb
@@ -169,42 +111,37 @@ files:
169
111
  - rails_generators/sms_spec/templates/sms_steps.rb
170
112
  - rails_generators/sms_spec_generator.rb
171
113
  - sms-spec.gemspec
172
- - spec/drivers_spec.rb
114
+ - spec/drivers/clickatell_spec.rb
115
+ - spec/drivers/twilio_spec.rb
173
116
  - spec/helpers_spec.rb
174
117
  - spec/matchers_spec.rb
175
118
  - spec/spec_helper.rb
176
- homepage: https://github.com/mhs/sms-spec
119
+ homepage: https://github.com/manlycode/sms-spec
177
120
  licenses: []
121
+ metadata: {}
178
122
  post_install_message:
179
123
  rdoc_options: []
180
124
  require_paths:
181
125
  - lib
182
126
  required_ruby_version: !ruby/object:Gem::Requirement
183
- none: false
184
127
  requirements:
185
- - - ! '>='
128
+ - - ">="
186
129
  - !ruby/object:Gem::Version
187
130
  version: '0'
188
- segments:
189
- - 0
190
- hash: 2714035201133554291
191
131
  required_rubygems_version: !ruby/object:Gem::Requirement
192
- none: false
193
132
  requirements:
194
- - - ! '>='
133
+ - - ">="
195
134
  - !ruby/object:Gem::Version
196
135
  version: '0'
197
- segments:
198
- - 0
199
- hash: 2714035201133554291
200
136
  requirements: []
201
137
  rubyforge_project: sms-spec
202
- rubygems_version: 1.8.25
138
+ rubygems_version: 2.2.2
203
139
  signing_key:
204
- specification_version: 3
140
+ specification_version: 4
205
141
  summary: Test SMS interactions with RSpec and Cucumber
206
142
  test_files:
207
- - spec/drivers_spec.rb
143
+ - spec/drivers/clickatell_spec.rb
144
+ - spec/drivers/twilio_spec.rb
208
145
  - spec/helpers_spec.rb
209
146
  - spec/matchers_spec.rb
210
147
  - spec/spec_helper.rb
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm use --create 1.9.3@sms-spec