bmabey-email_spec 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -3,6 +3,11 @@
3
3
  === New features
4
4
  === Bufixes
5
5
 
6
+ == 0.1.4 2009-5-29
7
+
8
+ === Bufixes
9
+ * Require deliveries in the helpers so it doesn't blow up with RSpec. (Craig Webster)
10
+
6
11
  == 0.1.3 2009-4-15
7
12
 
8
13
  === Bufixes
data/README.rdoc CHANGED
@@ -67,7 +67,7 @@ This will give you a bunch of steps to get started with in step_definitions/emai
67
67
  When I follow "confirm" in the email
68
68
  Then I should see "Confirm your new account"
69
69
 
70
- For more examples, check out spec/rails_root in the source for a small example app that implements these steps.
70
+ For more examples, check out examples/rails_root in the source for a small example app that implements these steps.
71
71
 
72
72
  === RSpec
73
73
 
@@ -116,8 +116,7 @@ For more examples, check out spec/rails_root in the source for a small example a
116
116
 
117
117
  ==== Using the helpers when not testing in isolation ====
118
118
 
119
- WRITE ME
120
- For now take a look at Email::Helpers to see what you can do.
119
+ Don't. :) Seriously, if you do just take a look at the helpers and use them as you wish.
121
120
 
122
121
  == Original Authors
123
122
 
data/Rakefile CHANGED
@@ -23,29 +23,28 @@ rescue LoadError
23
23
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
24
24
  end
25
25
 
26
- # Testing
27
-
28
- desc "Run the generator on the tests"
29
- task :generate do
30
- current_dir = File.expand_path(File.dirname(__FILE__))
31
- system "mkdir -p #{current_dir}/examples/rails_root/vendor/plugins/email_spec"
32
- system "cp -R #{current_dir}/rails_generators #{current_dir}/examples/rails_root/vendor/plugins/email_spec"
33
- system "cd #{current_dir}/examples/rails_root && ./script/generate email_spec"
34
- end
35
-
36
- task :migrate do
37
- system("cd examples/rails_root/ && rake db:test:prepare")
26
+ begin
27
+ require 'cucumber/rake/task'
28
+ Cucumber::Rake::Task.new(:features)
29
+ rescue LoadError
30
+ task :features do
31
+ abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
32
+ end
38
33
  end
39
34
 
40
- task :features => :generate do
41
- system("cucumber examples/rails_root/")
42
- puts "4 steps should fail.\n\n"
35
+ require 'spec/rake/spectask'
36
+ Spec::Rake::SpecTask.new(:spec) do |spec|
37
+ spec.libs << 'lib' << 'spec'
38
+ spec.spec_files = FileList['spec/**/*_spec.rb']
43
39
  end
44
40
 
45
- task :specs do
46
- system("spec examples/rails_root -c --format nested")
47
- system("spec spec -c --format nested")
41
+ namespace :example_app do
42
+ Spec::Rake::SpecTask.new(:spec) do |spec|
43
+ desc "Specs for Example app"
44
+ spec.libs << 'lib' << 'spec'
45
+ spec.spec_files = FileList['examples/rails_root/spec/**/*_spec.rb']
46
+ end
48
47
  end
49
48
 
50
- task :default => [:migrate, :features, :specs]
49
+ task :default => [:features, :spec, 'example_app:spec']
51
50
 
@@ -0,0 +1,7 @@
1
+ require(File.join(File.dirname(__FILE__), 'config', 'boot'))
2
+
3
+ require 'rake'
4
+ require 'rake/testtask'
5
+ require 'rake/rdoctask'
6
+
7
+ require 'tasks/rails'
@@ -1,4 +1,5 @@
1
1
  require 'uri'
2
+ require 'email_spec/deliveries'
2
3
 
3
4
  module EmailSpec
4
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bmabey-email_spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Mabey
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-04-16 00:00:00 -07:00
14
+ date: 2009-05-29 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies: []
17
17
 
@@ -22,93 +22,56 @@ executables: []
22
22
  extensions: []
23
23
 
24
24
  extra_rdoc_files:
25
- - README.rdoc
26
25
  - MIT-LICENSE.txt
26
+ - README.rdoc
27
27
  files:
28
28
  - History.txt
29
- - install.rb
30
29
  - MIT-LICENSE.txt
31
30
  - README.rdoc
32
31
  - Rakefile
33
- - lib/email_spec
34
- - lib/email_spec/address_converter.rb
35
- - lib/email_spec/cucumber.rb
36
- - lib/email_spec/deliveries.rb
37
- - lib/email_spec/email_viewer.rb
38
- - lib/email_spec/helpers.rb
39
- - lib/email_spec/matchers.rb
40
- - lib/email_spec.rb
41
- - rails_generators/email_spec
42
- - rails_generators/email_spec/email_spec_generator.rb
43
- - rails_generators/email_spec/templates
44
- - rails_generators/email_spec/templates/email_steps.rb
45
- - spec/email_spec
46
- - spec/email_spec/matchers_spec.rb
47
- - spec/spec.opts
48
- - spec/spec_helper.rb
49
- - examples/rails_root
50
- - examples/rails_root/app
51
- - examples/rails_root/app/controllers
32
+ - examples/rails_root/Rakefile
52
33
  - examples/rails_root/app/controllers/application.rb
53
34
  - examples/rails_root/app/controllers/welcome_controller.rb
54
- - examples/rails_root/app/helpers
55
35
  - examples/rails_root/app/helpers/application_helper.rb
56
36
  - examples/rails_root/app/helpers/welcome_helper.rb
57
- - examples/rails_root/app/models
58
37
  - examples/rails_root/app/models/user.rb
59
38
  - examples/rails_root/app/models/user_mailer.rb
60
- - examples/rails_root/app/views
61
- - examples/rails_root/app/views/user_mailer
62
39
  - examples/rails_root/app/views/user_mailer/signup.erb
63
- - examples/rails_root/app/views/welcome
64
40
  - examples/rails_root/app/views/welcome/confirm.html.erb
65
41
  - examples/rails_root/app/views/welcome/index.html.erb
66
42
  - examples/rails_root/app/views/welcome/signup.html.erb
67
- - examples/rails_root/config
68
43
  - examples/rails_root/config/boot.rb
69
44
  - examples/rails_root/config/database.yml
70
45
  - examples/rails_root/config/environment.rb
71
- - examples/rails_root/config/environments
72
46
  - examples/rails_root/config/environments/development.rb
73
47
  - examples/rails_root/config/environments/production.rb
74
48
  - examples/rails_root/config/environments/test.rb
75
- - examples/rails_root/config/initializers
76
49
  - examples/rails_root/config/initializers/inflections.rb
77
50
  - examples/rails_root/config/initializers/mime_types.rb
78
51
  - examples/rails_root/config/initializers/new_rails_defaults.rb
79
52
  - examples/rails_root/config/routes.rb
80
53
  - examples/rails_root/cucumber.yml
81
- - examples/rails_root/db
82
- - examples/rails_root/db/migrate
83
54
  - examples/rails_root/db/migrate/20090125013728_create_users.rb
84
55
  - examples/rails_root/db/schema.rb
85
- - examples/rails_root/doc
86
56
  - examples/rails_root/doc/README_FOR_APP
87
- - examples/rails_root/features
88
57
  - examples/rails_root/features/errors.feature
89
58
  - examples/rails_root/features/example.feature
90
- - examples/rails_root/features/step_definitions
91
59
  - examples/rails_root/features/step_definitions/email_steps.rb
92
60
  - examples/rails_root/features/step_definitions/user_steps.rb
93
61
  - examples/rails_root/features/step_definitions/webrat_steps.rb
94
- - examples/rails_root/features/support
95
62
  - examples/rails_root/features/support/env.rb
96
- - examples/rails_root/public
97
63
  - examples/rails_root/public/404.html
98
64
  - examples/rails_root/public/422.html
99
65
  - examples/rails_root/public/500.html
100
66
  - examples/rails_root/public/dispatch.rb
101
67
  - examples/rails_root/public/favicon.ico
102
- - examples/rails_root/public/images
103
68
  - examples/rails_root/public/images/rails.png
104
- - examples/rails_root/public/javascripts
105
69
  - examples/rails_root/public/javascripts/application.js
106
70
  - examples/rails_root/public/javascripts/controls.js
107
71
  - examples/rails_root/public/javascripts/dragdrop.js
108
72
  - examples/rails_root/public/javascripts/effects.js
109
73
  - examples/rails_root/public/javascripts/prototype.js
110
74
  - examples/rails_root/public/robots.txt
111
- - examples/rails_root/script
112
75
  - examples/rails_root/script/about
113
76
  - examples/rails_root/script/autospec
114
77
  - examples/rails_root/script/console
@@ -116,12 +79,10 @@ files:
116
79
  - examples/rails_root/script/dbconsole
117
80
  - examples/rails_root/script/destroy
118
81
  - examples/rails_root/script/generate
119
- - examples/rails_root/script/performance
120
82
  - examples/rails_root/script/performance/benchmarker
121
83
  - examples/rails_root/script/performance/profiler
122
84
  - examples/rails_root/script/performance/request
123
85
  - examples/rails_root/script/plugin
124
- - examples/rails_root/script/process
125
86
  - examples/rails_root/script/process/inspector
126
87
  - examples/rails_root/script/process/reaper
127
88
  - examples/rails_root/script/process/spawner
@@ -129,32 +90,34 @@ files:
129
90
  - examples/rails_root/script/server
130
91
  - examples/rails_root/script/spec
131
92
  - examples/rails_root/script/spec_server
132
- - examples/rails_root/spec
133
- - examples/rails_root/spec/controllers
134
93
  - examples/rails_root/spec/controllers/welcome_controller_spec.rb
135
94
  - examples/rails_root/spec/model_factory.rb
136
- - examples/rails_root/spec/models
137
95
  - examples/rails_root/spec/models/user_mailer_spec.rb
138
96
  - examples/rails_root/spec/models/user_spec.rb
139
97
  - examples/rails_root/spec/rcov.opts
140
98
  - examples/rails_root/spec/spec.opts
141
99
  - examples/rails_root/spec/spec_helper.rb
142
- - examples/rails_root/stories
143
100
  - examples/rails_root/stories/all.rb
144
101
  - examples/rails_root/stories/helper.rb
145
- - examples/rails_root/vendor
146
- - examples/rails_root/vendor/plugins
147
- - examples/rails_root/vendor/plugins/email_spec
148
- - examples/rails_root/vendor/plugins/email_spec/rails_generators
149
- - examples/rails_root/vendor/plugins/email_spec/rails_generators/email_spec
150
102
  - examples/rails_root/vendor/plugins/email_spec/rails_generators/email_spec/email_spec_generator.rb
151
- - examples/rails_root/vendor/plugins/email_spec/rails_generators/email_spec/templates
152
103
  - examples/rails_root/vendor/plugins/email_spec/rails_generators/email_spec/templates/email_steps.rb
153
- has_rdoc: true
104
+ - install.rb
105
+ - lib/email_spec.rb
106
+ - lib/email_spec/address_converter.rb
107
+ - lib/email_spec/cucumber.rb
108
+ - lib/email_spec/deliveries.rb
109
+ - lib/email_spec/email_viewer.rb
110
+ - lib/email_spec/helpers.rb
111
+ - lib/email_spec/matchers.rb
112
+ - rails_generators/email_spec/email_spec_generator.rb
113
+ - rails_generators/email_spec/templates/email_steps.rb
114
+ - spec/email_spec/matchers_spec.rb
115
+ - spec/spec.opts
116
+ - spec/spec_helper.rb
117
+ has_rdoc: false
154
118
  homepage: http://github.com/bmabey/email-spec/
155
119
  post_install_message:
156
120
  rdoc_options:
157
- - --inline-source
158
121
  - --charset=UTF-8
159
122
  require_paths:
160
123
  - lib
@@ -177,5 +140,37 @@ rubygems_version: 1.2.0
177
140
  signing_key:
178
141
  specification_version: 3
179
142
  summary: Easily test email in rspec and cucumber
180
- test_files: []
181
-
143
+ test_files:
144
+ - spec/email_spec/matchers_spec.rb
145
+ - spec/spec_helper.rb
146
+ - examples/rails_root/app/controllers/application.rb
147
+ - examples/rails_root/app/controllers/welcome_controller.rb
148
+ - examples/rails_root/app/helpers/application_helper.rb
149
+ - examples/rails_root/app/helpers/welcome_helper.rb
150
+ - examples/rails_root/app/models/user.rb
151
+ - examples/rails_root/app/models/user_mailer.rb
152
+ - examples/rails_root/config/boot.rb
153
+ - examples/rails_root/config/environment.rb
154
+ - examples/rails_root/config/environments/development.rb
155
+ - examples/rails_root/config/environments/production.rb
156
+ - examples/rails_root/config/environments/test.rb
157
+ - examples/rails_root/config/initializers/inflections.rb
158
+ - examples/rails_root/config/initializers/mime_types.rb
159
+ - examples/rails_root/config/initializers/new_rails_defaults.rb
160
+ - examples/rails_root/config/routes.rb
161
+ - examples/rails_root/db/migrate/20090125013728_create_users.rb
162
+ - examples/rails_root/db/schema.rb
163
+ - examples/rails_root/features/step_definitions/email_steps.rb
164
+ - examples/rails_root/features/step_definitions/user_steps.rb
165
+ - examples/rails_root/features/step_definitions/webrat_steps.rb
166
+ - examples/rails_root/features/support/env.rb
167
+ - examples/rails_root/public/dispatch.rb
168
+ - examples/rails_root/spec/controllers/welcome_controller_spec.rb
169
+ - examples/rails_root/spec/model_factory.rb
170
+ - examples/rails_root/spec/models/user_mailer_spec.rb
171
+ - examples/rails_root/spec/models/user_spec.rb
172
+ - examples/rails_root/spec/spec_helper.rb
173
+ - examples/rails_root/stories/all.rb
174
+ - examples/rails_root/stories/helper.rb
175
+ - examples/rails_root/vendor/plugins/email_spec/rails_generators/email_spec/email_spec_generator.rb
176
+ - examples/rails_root/vendor/plugins/email_spec/rails_generators/email_spec/templates/email_steps.rb