smsforall 0.0.3 → 0.0.4

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.
@@ -1,4 +1,4 @@
1
1
  module Smsforall
2
2
  # GEM version
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
data/spec/api_spec.rb CHANGED
@@ -1,9 +1,21 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Smsforall do
4
- sms = Smsforall::Sms.new("test","test", :test)
5
- balance = sms.get_balance()
6
- message = sms.send_message("sender", "sms text", "79251233232")
7
- status = sms.get_status(message)
8
- puts "#{balance}, #{message}, #{status}"
4
+ before(:all) do
5
+ @sms = Smsforall::Sms.new("test","test", :test)
6
+ end
7
+
8
+ it "get balance" do
9
+ balance = @sms.get_balance()
10
+ balance.should have_at_least(3).characters
11
+ end
12
+ it "send message" do
13
+ message = @sms.send_message("sender", "sms text", "79251233232")
14
+ message.should have_at_least(1).characters
15
+ end
16
+ it "get status" do
17
+ status = @sms.get_status("12345678")
18
+ status.should have(1).item
19
+ end
20
+
9
21
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: smsforall
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - drakmail
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-09-01 00:00:00 Z
13
+ date: 2012-09-02 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json_pure