text_spec 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.markdown +32 -7
  2. data/lib/text_spec/version.rb +1 -1
  3. metadata +12 -12
@@ -3,28 +3,53 @@
3
3
  An RSpec DSL and Cucumber steps to test SMS interactions with your
4
4
  Ruby on Rails application.
5
5
 
6
+ Currently this gem only supports testing SMS messageing using the
7
+ [twilio-ruby](https://github.com/twilio/twilio-ruby) gem.
8
+
6
9
  ##Setup
7
- ###Gem Setup
10
+ Add the text\_spec gem to your Gemfile:
8
11
  <pre>
9
12
  group :test do
10
- gem 'test_spec'
13
+ gem 'text_spec'
11
14
  end
12
15
  </pre>
13
16
 
17
+ ## RSpec
18
+ In your spec\_helper.rb file add the following:
19
+ <pre>
20
+ require 'text_spec'
21
+ </pre>
14
22
 
15
- ### Cucumber
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
+ <pre>
26
+ Spec::Runner.configure do |config|
27
+ config.include(TextSpec::Helpers)
28
+ config.include(TextSpec::Matchers)
29
+ end
30
+ </pre>
16
31
 
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 TextSpec::Helpers
38
+ include TextSpec::Matchers
39
+ end
40
+ </pre>
41
+
42
+ ## Cucumber
17
43
  Add the folloing to you env.rb file:
18
44
 
19
45
  <pre>
20
46
  require 'text_spec'
21
- require 'text_spec/cucubmber'
47
+ require 'text_spec/cucumber'
22
48
  </pre>
23
49
 
24
- This loads the text_spec RSpec helpers into your cucumber wold. Then,
25
- run the following:
50
+ This loads the text\_spec RSpec helpers into your cucumber wold. Then,
51
+ run the following to generate the text\_messsage\_steps.rb file:
26
52
 
27
53
  <pre>
28
54
  rails generate text_spec:steps
29
55
  </pre>
30
-
@@ -1,3 +1,3 @@
1
1
  module TextSpec
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text_spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-04 00:00:00.000000000Z
12
+ date: 2012-03-06 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &2168665540 !ruby/object:Gem::Requirement
16
+ requirement: &2156519000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2168665540
24
+ version_requirements: *2156519000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &2168665000 !ruby/object:Gem::Requirement
27
+ requirement: &2156518460 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2168665000
35
+ version_requirements: *2156518460
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: twilio-ruby
38
- requirement: &2168664440 !ruby/object:Gem::Requirement
38
+ requirement: &2156518000 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2168664440
46
+ version_requirements: *2156518000
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: guard-rspec
49
- requirement: &2168663980 !ruby/object:Gem::Requirement
49
+ requirement: &2156517560 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2168663980
57
+ version_requirements: *2156517560
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: pry
60
- requirement: &2168663500 !ruby/object:Gem::Requirement
60
+ requirement: &2156517140 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2168663500
68
+ version_requirements: *2156517140
69
69
  description: Text Spec gives you an RSpec DSL and Cucumber steps to test SMS interactions.
70
70
  email:
71
71
  - manlycode@gmail.com