rspec-rails 2.0.0.a9 → 2.0.0.a10
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/.gitignore +1 -0
- data/README.markdown +13 -0
- data/Rakefile +50 -19
- data/VERSION +1 -1
- data/example_app_template.rb +1 -20
- data/lib/generators/rspec/controller/templates/controller_spec.rb +0 -1
- data/lib/generators/rspec/integration/templates/request_spec.rb +1 -1
- data/lib/generators/rspec/scaffold/templates/controller_spec.rb +25 -25
- data/lib/rspec/rails/example/controller_example_group.rb +8 -2
- data/lib/rspec/rails/example/mailer_example_group.rb +4 -0
- data/lib/rspec/rails/example/request_example_group.rb +9 -2
- data/lib/rspec/rails/example/view_example_group.rb +3 -1
- data/lib/rspec/rails/matchers.rb +4 -2
- data/templates/generate_stuff.rb +7 -0
- data/templates/run_specs.rb +11 -0
- metadata +24 -11
- data/rspec-rails.gemspec +0 -88
data/.gitignore
CHANGED
data/README.markdown
CHANGED
@@ -69,3 +69,16 @@ Currently supported:
|
|
69
69
|
* no routing specs
|
70
70
|
* only works with ActiveRecord
|
71
71
|
|
72
|
+
## Controller Specs
|
73
|
+
|
74
|
+
Controller specs live in spec/controllers, and include
|
75
|
+
behavior from ActionDispatch::Integration::Runner. The
|
76
|
+
format for a request is:
|
77
|
+
|
78
|
+
# get action, params, headers
|
79
|
+
get :show, {:id => '37'}, {'HTTP_ACCEPT' => Mime::JS}
|
80
|
+
|
81
|
+
This works for `get`, `post`, `put`, `delete`, `head`.
|
82
|
+
|
83
|
+
After a request is made, you set expectations on the `request` and `response`
|
84
|
+
objects.
|
data/Rakefile
CHANGED
@@ -13,37 +13,64 @@ begin
|
|
13
13
|
Jeweler::Tasks.new do |gem|
|
14
14
|
gem.name = "rspec-rails"
|
15
15
|
gem.version = Rspec::Rails::Version::STRING
|
16
|
-
gem.summary = "Rspec
|
16
|
+
gem.summary = "rspec-rails-#{Rspec::Rails::Version::STRING}"
|
17
|
+
gem.description = "Rspec-2 for Rails-3"
|
17
18
|
gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
|
18
19
|
gem.homepage = "http://github.com/rspec/rspec-rails"
|
19
20
|
gem.authors = ["David Chelimsky", "Chad Humphries"]
|
20
|
-
gem.
|
21
|
+
gem.rubyforge_project = "rspec"
|
22
|
+
gem.add_dependency "rspec", "2.0.0.a10"
|
21
23
|
gem.add_dependency "webrat", ">= 0.7.0"
|
22
|
-
|
24
|
+
gem.post_install_message = <<-EOM
|
25
|
+
#{"*"*50}
|
26
|
+
|
27
|
+
Thank you for installing #{gem.summary}!
|
28
|
+
|
29
|
+
This version of rspec-rails only works with versions of rails >= 3.0.0.pre.
|
30
|
+
|
31
|
+
The 'a' in #{gem.version} means this is alpha software. If you are looking
|
32
|
+
for a supported production release, please "gem install rspec-rails" (without
|
33
|
+
--pre).
|
34
|
+
|
35
|
+
#{"*"*50}
|
36
|
+
EOM
|
23
37
|
end
|
24
|
-
Jeweler::GemcutterTasks.new
|
25
38
|
rescue LoadError
|
26
39
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
27
40
|
end
|
28
41
|
|
42
|
+
namespace :generate do
|
43
|
+
desc "generate a fresh app with rspec installed"
|
44
|
+
task :app => :clobber_app do |t|
|
45
|
+
if File.directory?('./tmp/rails')
|
46
|
+
ruby "./tmp/rails/railties/bin/rails tmp/example_app --dev -m example_app_template.rb"
|
47
|
+
else
|
48
|
+
puts <<-MESSAGE
|
49
|
+
|
50
|
+
You need to install rails in ./tmp/rails before you can run the
|
51
|
+
#{t.name} task:
|
52
|
+
|
53
|
+
git clone git://github.com/rails/rails tmp/rails
|
29
54
|
|
30
|
-
|
31
|
-
|
32
|
-
if File.directory?('./tmp/rails')
|
33
|
-
rm_rf "tmp/example_app"
|
34
|
-
ruby "./tmp/rails/railties/bin/rails tmp/example_app --dev -m example_app_template.rb"
|
35
|
-
else
|
36
|
-
puts <<-MESSAGE
|
55
|
+
(We'll automate this eventually, but running 'git clone' from rake in this
|
56
|
+
project is mysteriously full of fail)
|
37
57
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
git clone git://github.com/rails/rails tmp/rails
|
58
|
+
MESSAGE
|
59
|
+
end
|
60
|
+
end
|
42
61
|
|
43
|
-
|
44
|
-
|
62
|
+
desc "generate a bunch of stuff with generators"
|
63
|
+
task :stuff do
|
64
|
+
Dir.chdir("./tmp/example_app/") do
|
65
|
+
sh "rake rails:template LOCATION='../../templates/generate_stuff.rb'"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
45
69
|
|
46
|
-
|
70
|
+
desc "run a variety of specs against the generated app"
|
71
|
+
task :run_specs do
|
72
|
+
Dir.chdir("./tmp/example_app/") do
|
73
|
+
sh "rake rails:template LOCATION='../../templates/run_specs.rb'"
|
47
74
|
end
|
48
75
|
end
|
49
76
|
|
@@ -52,5 +79,9 @@ task :clobber do
|
|
52
79
|
rm_rf "pkg"
|
53
80
|
end
|
54
81
|
|
55
|
-
task :
|
82
|
+
task :clobber_app do
|
83
|
+
rm_rf "tmp/example_app"
|
84
|
+
end
|
85
|
+
|
86
|
+
task :default => ["generate:app", "generate:stuff", :run_specs]
|
56
87
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0.
|
1
|
+
2.0.0.a10
|
data/example_app_template.rb
CHANGED
@@ -4,24 +4,5 @@ require 'rspec/rails/version'
|
|
4
4
|
# - would be nicer if we could source them from the <repo>/pkg dirs
|
5
5
|
gem 'rspec-rails', :path => File.expand_path('../../../', __FILE__)
|
6
6
|
|
7
|
-
|
7
|
+
generate('rspec:install')
|
8
8
|
|
9
|
-
run('script/rails g rspec:install')
|
10
|
-
run('script/rails g controller wombats index')
|
11
|
-
run('script/rails g integration_test widgets')
|
12
|
-
run('script/rails g mailer Notifications signup')
|
13
|
-
run('script/rails g model thing name:string')
|
14
|
-
run('script/rails g observer widget')
|
15
|
-
run('script/rails g scaffold widgets name:string')
|
16
|
-
|
17
|
-
run('rake db:migrate')
|
18
|
-
run('rake db:test:prepare')
|
19
|
-
run('rspec spec -cfdoc')
|
20
|
-
run('rake spec')
|
21
|
-
run('rake spec:requests')
|
22
|
-
run('rake spec:models')
|
23
|
-
run('rake spec:views')
|
24
|
-
run('rake spec:controllers')
|
25
|
-
run('rake spec:helpers')
|
26
|
-
run('rake spec:mailers')
|
27
|
-
run('rake stats')
|
@@ -6,37 +6,37 @@ describe <%= controller_class_name %>Controller do
|
|
6
6
|
@<%= mock_file_name %> ||= mock_model(<%= class_name %>, stubs).as_null_object
|
7
7
|
end
|
8
8
|
|
9
|
-
|
9
|
+
<% unless options[:singleton] -%>
|
10
10
|
describe "GET index" do
|
11
11
|
it "assigns all <%= table_name.pluralize %> as @<%= table_name.pluralize %>" do
|
12
|
-
<%= stub! orm_class.all(class_name)
|
12
|
+
<%= stub! orm_class.all(class_name) %> { [<%= mock_file_name %>] }
|
13
13
|
get :index
|
14
|
-
assigns(:<%= table_name %>).should
|
14
|
+
assigns(:<%= table_name %>).should eq([<%= mock_file_name %>])
|
15
15
|
end
|
16
16
|
end
|
17
|
-
<% end -%>
|
18
17
|
|
18
|
+
<% end -%>
|
19
19
|
describe "GET show" do
|
20
20
|
it "assigns the requested <%= file_name %> as @<%= file_name %>" do
|
21
|
-
<%= stub! orm_class.find(class_name, "37".inspect)
|
21
|
+
<%= stub! orm_class.find(class_name, "37".inspect) %> { <%= mock_file_name %> }
|
22
22
|
get :show, :id => "37"
|
23
|
-
assigns(:<%= file_name %>).should
|
23
|
+
assigns(:<%= file_name %>).should be(<%= mock_file_name %>)
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
27
|
describe "GET new" do
|
28
28
|
it "assigns a new <%= file_name %> as @<%= file_name %>" do
|
29
|
-
<%= stub! orm_class.build(class_name)
|
29
|
+
<%= stub! orm_class.build(class_name) %> { <%= mock_file_name %> }
|
30
30
|
get :new
|
31
|
-
assigns(:<%= file_name %>).should
|
31
|
+
assigns(:<%= file_name %>).should be(<%= mock_file_name %>)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
35
|
describe "GET edit" do
|
36
36
|
it "assigns the requested <%= file_name %> as @<%= file_name %>" do
|
37
|
-
<%= stub! orm_class.find(class_name, "37".inspect)
|
37
|
+
<%= stub! orm_class.find(class_name, "37".inspect) %> { <%= mock_file_name %> }
|
38
38
|
get :edit, :id => "37"
|
39
|
-
assigns(:<%= file_name %>).should
|
39
|
+
assigns(:<%= file_name %>).should be(<%= mock_file_name %>)
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
@@ -44,13 +44,13 @@ describe <%= controller_class_name %>Controller do
|
|
44
44
|
|
45
45
|
describe "with valid params" do
|
46
46
|
it "assigns a newly created <%= file_name %> as @<%= file_name %>" do
|
47
|
-
<%= stub! orm_class.build(class_name, params)
|
47
|
+
<%= stub! orm_class.build(class_name, params) %> { <%= mock_file_name(:save => true) %> }
|
48
48
|
post :create, :<%= file_name %> => <%= params %>
|
49
|
-
assigns(:<%= file_name %>).should
|
49
|
+
assigns(:<%= file_name %>).should be(<%= mock_file_name %>)
|
50
50
|
end
|
51
51
|
|
52
52
|
it "redirects to the created <%= file_name %>" do
|
53
|
-
<%= stub! orm_class.build(class_name)
|
53
|
+
<%= stub! orm_class.build(class_name) %> { <%= mock_file_name(:save => true) %> }
|
54
54
|
post :create, :<%= file_name %> => {}
|
55
55
|
response.should redirect_to(<%= table_name.singularize %>_url(<%= mock_file_name %>))
|
56
56
|
end
|
@@ -58,13 +58,13 @@ describe <%= controller_class_name %>Controller do
|
|
58
58
|
|
59
59
|
describe "with invalid params" do
|
60
60
|
it "assigns a newly created but unsaved <%= file_name %> as @<%= file_name %>" do
|
61
|
-
<%= stub! orm_class.build(class_name, params)
|
61
|
+
<%= stub! orm_class.build(class_name, params) %> { <%= mock_file_name(:save => false) %> }
|
62
62
|
post :create, :<%= file_name %> => <%= params %>
|
63
|
-
assigns(:<%= file_name %>).should
|
63
|
+
assigns(:<%= file_name %>).should be(<%= mock_file_name %>)
|
64
64
|
end
|
65
65
|
|
66
66
|
it "re-renders the 'new' template" do
|
67
|
-
<%= stub! orm_class.build(class_name)
|
67
|
+
<%= stub! orm_class.build(class_name) %> { <%= mock_file_name(:save => false) %> }
|
68
68
|
post :create, :<%= file_name %> => {}
|
69
69
|
response.should render_template('new')
|
70
70
|
end
|
@@ -76,19 +76,19 @@ describe <%= controller_class_name %>Controller do
|
|
76
76
|
|
77
77
|
describe "with valid params" do
|
78
78
|
it "updates the requested <%= file_name %>" do
|
79
|
-
<%= should_receive! orm_class.find(class_name, "37".inspect)
|
79
|
+
<%= should_receive! orm_class.find(class_name, "37".inspect) %> { <%= mock_file_name %> }
|
80
80
|
mock_<%= should_receive! orm_instance.update_attributes(params) %>
|
81
81
|
put :update, :id => "37", :<%= file_name %> => <%= params %>
|
82
82
|
end
|
83
83
|
|
84
84
|
it "assigns the requested <%= file_name %> as @<%= file_name %>" do
|
85
|
-
<%= stub! orm_class.find(class_name)
|
85
|
+
<%= stub! orm_class.find(class_name) %> { <%= mock_file_name(:update_attributes => true) %> }
|
86
86
|
put :update, :id => "1"
|
87
|
-
assigns(:<%= file_name %>).should
|
87
|
+
assigns(:<%= file_name %>).should be(<%= mock_file_name %>)
|
88
88
|
end
|
89
89
|
|
90
90
|
it "redirects to the <%= file_name %>" do
|
91
|
-
<%= stub! orm_class.find(class_name)
|
91
|
+
<%= stub! orm_class.find(class_name) %> { <%= mock_file_name(:update_attributes => true) %> }
|
92
92
|
put :update, :id => "1"
|
93
93
|
response.should redirect_to(<%= table_name.singularize %>_url(<%= mock_file_name %>))
|
94
94
|
end
|
@@ -96,13 +96,13 @@ describe <%= controller_class_name %>Controller do
|
|
96
96
|
|
97
97
|
describe "with invalid params" do
|
98
98
|
it "assigns the <%= file_name %> as @<%= file_name %>" do
|
99
|
-
<%= stub! orm_class.find(class_name)
|
99
|
+
<%= stub! orm_class.find(class_name) %> { <%= mock_file_name(:update_attributes => false) %> }
|
100
100
|
put :update, :id => "1"
|
101
|
-
assigns(:<%= file_name %>).should
|
101
|
+
assigns(:<%= file_name %>).should be(<%= mock_file_name %>)
|
102
102
|
end
|
103
103
|
|
104
104
|
it "re-renders the 'edit' template" do
|
105
|
-
<%= stub! orm_class.find(class_name)
|
105
|
+
<%= stub! orm_class.find(class_name) %> { <%= mock_file_name(:update_attributes => false) %> }
|
106
106
|
put :update, :id => "1"
|
107
107
|
response.should render_template('edit')
|
108
108
|
end
|
@@ -112,13 +112,13 @@ describe <%= controller_class_name %>Controller do
|
|
112
112
|
|
113
113
|
describe "DELETE destroy" do
|
114
114
|
it "destroys the requested <%= file_name %>" do
|
115
|
-
<%= should_receive! orm_class.find(class_name, "37".inspect)
|
115
|
+
<%= should_receive! orm_class.find(class_name, "37".inspect) %> { <%= mock_file_name %> }
|
116
116
|
mock_<%= should_receive! orm_instance.destroy %>
|
117
117
|
delete :destroy, :id => "37"
|
118
118
|
end
|
119
119
|
|
120
120
|
it "redirects to the <%= table_name %> list" do
|
121
|
-
<%= stub! orm_class.find(class_name)
|
121
|
+
<%= stub! orm_class.find(class_name) %> { <%= mock_file_name(:destroy => true) %> }
|
122
122
|
delete :destroy, :id => "1"
|
123
123
|
response.should redirect_to(<%= table_name %>_url)
|
124
124
|
end
|
@@ -9,11 +9,17 @@ module ControllerExampleGroupBehaviour
|
|
9
9
|
include Rspec::Rails::Matchers
|
10
10
|
|
11
11
|
def self.included(mod)
|
12
|
-
mod.before
|
12
|
+
mod.before do
|
13
|
+
@_result = Struct.new(:add_assertion).new
|
14
|
+
end
|
13
15
|
end
|
14
16
|
|
15
17
|
def app
|
16
|
-
self.class.described_class.action(@_action)
|
18
|
+
self.class.described_class.action(@_action).tap do |endpoint|
|
19
|
+
def endpoint.routes
|
20
|
+
Rails.application.routes
|
21
|
+
end
|
22
|
+
end
|
17
23
|
end
|
18
24
|
|
19
25
|
%w[get post put delete head].map do |method|
|
@@ -6,8 +6,15 @@ module RequestExampleGroupBehaviour
|
|
6
6
|
include ActionDispatch::Integration::Runner
|
7
7
|
include Webrat::Matchers
|
8
8
|
include Webrat::Methods
|
9
|
-
Rails
|
9
|
+
include Rspec::Rails::Matchers
|
10
10
|
|
11
|
+
def self.included(mod)
|
12
|
+
mod.before do
|
13
|
+
@_result = Struct.new(:add_assertion).new
|
14
|
+
@router = Rails.application.routes
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
11
18
|
def app
|
12
19
|
Rails.application
|
13
20
|
end
|
@@ -19,7 +26,7 @@ module RequestExampleGroupBehaviour
|
|
19
26
|
def last_response
|
20
27
|
response
|
21
28
|
end
|
22
|
-
|
29
|
+
|
23
30
|
Rspec.configure do |c|
|
24
31
|
c.include self, :example_group => { :file_path => /\bspec\/requests\// }
|
25
32
|
end
|
@@ -2,6 +2,7 @@ require 'webrat'
|
|
2
2
|
|
3
3
|
module ViewExampleGroupBehaviour
|
4
4
|
include Webrat::Matchers
|
5
|
+
include Rspec::Matchers
|
5
6
|
|
6
7
|
class ViewExampleController < ActionController::Base
|
7
8
|
attr_accessor :controller_path
|
@@ -46,7 +47,7 @@ module ViewExampleGroupBehaviour
|
|
46
47
|
end
|
47
48
|
|
48
49
|
def method_missing(selector, *args)
|
49
|
-
if
|
50
|
+
if Rails.application.routes.named_routes.helpers.include?(selector)
|
50
51
|
controller.__send__(selector, *args)
|
51
52
|
else
|
52
53
|
super
|
@@ -63,6 +64,7 @@ private
|
|
63
64
|
@controller ||= begin
|
64
65
|
controller = ViewExampleController.new
|
65
66
|
controller.controller_path = controller_path
|
67
|
+
controller.request = ActionDispatch::Request.new(Rack::MockRequest.env_for("/url"))
|
66
68
|
controller
|
67
69
|
end
|
68
70
|
end
|
data/lib/rspec/rails/matchers.rb
CHANGED
@@ -4,9 +4,11 @@ require 'test/unit/assertionfailederror'
|
|
4
4
|
module Rspec
|
5
5
|
module Rails
|
6
6
|
module Matchers
|
7
|
+
include Rspec::Matchers
|
8
|
+
|
7
9
|
def redirect_to(destination)
|
8
10
|
example = self
|
9
|
-
|
11
|
+
Matcher.new :redirect_to, destination do |destination_|
|
10
12
|
match_unless_raises Test::Unit::AssertionFailedError do |_|
|
11
13
|
example.assert_redirected_to destination_
|
12
14
|
end
|
@@ -15,7 +17,7 @@ module Rspec
|
|
15
17
|
|
16
18
|
def render_template(options={}, message=nil)
|
17
19
|
example = self
|
18
|
-
|
20
|
+
Matcher.new :render_template, options, message do |options_, message_|
|
19
21
|
match_unless_raises Test::Unit::AssertionFailedError do |_|
|
20
22
|
example.assert_template options_, message_
|
21
23
|
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
run('rake db:migrate')
|
2
|
+
run('rake db:test:prepare')
|
3
|
+
run('rspec spec -cfdoc')
|
4
|
+
run('rake spec')
|
5
|
+
run('rake spec:requests')
|
6
|
+
run('rake spec:models')
|
7
|
+
run('rake spec:views')
|
8
|
+
run('rake spec:controllers')
|
9
|
+
run('rake spec:helpers')
|
10
|
+
run('rake spec:mailers')
|
11
|
+
run('rake stats')
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 2
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.0.
|
9
|
+
- a10
|
10
|
+
version: 2.0.0.a10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Chelimsky
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-02-
|
19
|
+
date: 2010-02-27 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -24,14 +24,14 @@ dependencies:
|
|
24
24
|
prerelease: false
|
25
25
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - "="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
segments:
|
30
30
|
- 2
|
31
31
|
- 0
|
32
32
|
- 0
|
33
|
-
-
|
34
|
-
version: 2.0.0.
|
33
|
+
- a10
|
34
|
+
version: 2.0.0.a10
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|
@@ -48,7 +48,7 @@ dependencies:
|
|
48
48
|
version: 0.7.0
|
49
49
|
type: :runtime
|
50
50
|
version_requirements: *id002
|
51
|
-
description:
|
51
|
+
description: Rspec-2 for Rails-3
|
52
52
|
email: dchelimsky@gmail.com;chad.humphries@gmail.com
|
53
53
|
executables: []
|
54
54
|
|
@@ -103,12 +103,25 @@ files:
|
|
103
103
|
- lib/rspec/rails/mocks.rb
|
104
104
|
- lib/rspec/rails/transactional_database_support.rb
|
105
105
|
- lib/rspec/rails/version.rb
|
106
|
-
-
|
106
|
+
- templates/generate_stuff.rb
|
107
|
+
- templates/run_specs.rb
|
107
108
|
has_rdoc: true
|
108
109
|
homepage: http://github.com/rspec/rspec-rails
|
109
110
|
licenses: []
|
110
111
|
|
111
|
-
post_install_message:
|
112
|
+
post_install_message: |
|
113
|
+
**************************************************
|
114
|
+
|
115
|
+
Thank you for installing rspec-rails-2.0.0.a10!
|
116
|
+
|
117
|
+
This version of rspec-rails only works with versions of rails >= 3.0.0.pre.
|
118
|
+
|
119
|
+
The 'a' in 2.0.0.a10 means this is alpha software. If you are looking
|
120
|
+
for a supported production release, please "gem install rspec-rails" (without
|
121
|
+
--pre).
|
122
|
+
|
123
|
+
**************************************************
|
124
|
+
|
112
125
|
rdoc_options:
|
113
126
|
- --charset=UTF-8
|
114
127
|
require_paths:
|
@@ -131,10 +144,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
144
|
version: 1.3.1
|
132
145
|
requirements: []
|
133
146
|
|
134
|
-
rubyforge_project:
|
147
|
+
rubyforge_project: rspec
|
135
148
|
rubygems_version: 1.3.6
|
136
149
|
signing_key:
|
137
150
|
specification_version: 3
|
138
|
-
summary:
|
151
|
+
summary: rspec-rails-2.0.0.a10
|
139
152
|
test_files: []
|
140
153
|
|
data/rspec-rails.gemspec
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{rspec-rails}
|
8
|
-
s.version = "2.0.0.a9"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["David Chelimsky", "Chad Humphries"]
|
12
|
-
s.date = %q{2010-02-21}
|
13
|
-
s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
|
14
|
-
s.extra_rdoc_files = [
|
15
|
-
"README.markdown"
|
16
|
-
]
|
17
|
-
s.files = [
|
18
|
-
".gitignore",
|
19
|
-
"README.markdown",
|
20
|
-
"Rakefile",
|
21
|
-
"VERSION",
|
22
|
-
"example_app_template.rb",
|
23
|
-
"lib/generators/rspec.rb",
|
24
|
-
"lib/generators/rspec/controller/controller_generator.rb",
|
25
|
-
"lib/generators/rspec/controller/templates/controller_spec.rb",
|
26
|
-
"lib/generators/rspec/controller/templates/view_spec.rb",
|
27
|
-
"lib/generators/rspec/helper/helper_generator.rb",
|
28
|
-
"lib/generators/rspec/helper/templates/helper_spec.rb",
|
29
|
-
"lib/generators/rspec/install/install_generator.rb",
|
30
|
-
"lib/generators/rspec/install/templates/config/initializers/rspec_generator.rb.tt",
|
31
|
-
"lib/generators/rspec/install/templates/lib/tasks/rspec.rake",
|
32
|
-
"lib/generators/rspec/install/templates/spec/spec.opts",
|
33
|
-
"lib/generators/rspec/install/templates/spec/spec_helper.rb",
|
34
|
-
"lib/generators/rspec/integration/integration_generator.rb",
|
35
|
-
"lib/generators/rspec/integration/templates/request_spec.rb",
|
36
|
-
"lib/generators/rspec/mailer/mailer_generator.rb",
|
37
|
-
"lib/generators/rspec/mailer/templates/fixture",
|
38
|
-
"lib/generators/rspec/mailer/templates/mailer_spec.rb",
|
39
|
-
"lib/generators/rspec/model/model_generator.rb",
|
40
|
-
"lib/generators/rspec/model/templates/fixtures.yml",
|
41
|
-
"lib/generators/rspec/model/templates/model_spec.rb",
|
42
|
-
"lib/generators/rspec/observer/observer_generator.rb",
|
43
|
-
"lib/generators/rspec/observer/templates/observer_spec.rb",
|
44
|
-
"lib/generators/rspec/scaffold/scaffold_generator.rb",
|
45
|
-
"lib/generators/rspec/scaffold/templates/controller_spec.rb",
|
46
|
-
"lib/generators/rspec/scaffold/templates/edit_spec.rb",
|
47
|
-
"lib/generators/rspec/scaffold/templates/index_spec.rb",
|
48
|
-
"lib/generators/rspec/scaffold/templates/new_spec.rb",
|
49
|
-
"lib/generators/rspec/scaffold/templates/routing_spec.rb",
|
50
|
-
"lib/generators/rspec/scaffold/templates/show_spec.rb",
|
51
|
-
"lib/generators/rspec/view/templates/view_spec.rb",
|
52
|
-
"lib/generators/rspec/view/view_generator.rb",
|
53
|
-
"lib/rspec-rails.rb",
|
54
|
-
"lib/rspec/rails.rb",
|
55
|
-
"lib/rspec/rails/example.rb",
|
56
|
-
"lib/rspec/rails/example/controller_example_group.rb",
|
57
|
-
"lib/rspec/rails/example/mailer_example_group.rb",
|
58
|
-
"lib/rspec/rails/example/request_example_group.rb",
|
59
|
-
"lib/rspec/rails/example/view_example_group.rb",
|
60
|
-
"lib/rspec/rails/matchers.rb",
|
61
|
-
"lib/rspec/rails/mocks.rb",
|
62
|
-
"lib/rspec/rails/transactional_database_support.rb",
|
63
|
-
"lib/rspec/rails/version.rb",
|
64
|
-
"rspec-rails.gemspec"
|
65
|
-
]
|
66
|
-
s.homepage = %q{http://github.com/rspec/rspec-rails}
|
67
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
68
|
-
s.require_paths = ["lib"]
|
69
|
-
s.rubygems_version = %q{1.3.6}
|
70
|
-
s.summary = %q{Rspec-2 for Rails-3}
|
71
|
-
|
72
|
-
if s.respond_to? :specification_version then
|
73
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
74
|
-
s.specification_version = 3
|
75
|
-
|
76
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
77
|
-
s.add_runtime_dependency(%q<rspec>, [">= 2.0.0.a7"])
|
78
|
-
s.add_runtime_dependency(%q<webrat>, [">= 0.7.0"])
|
79
|
-
else
|
80
|
-
s.add_dependency(%q<rspec>, [">= 2.0.0.a7"])
|
81
|
-
s.add_dependency(%q<webrat>, [">= 0.7.0"])
|
82
|
-
end
|
83
|
-
else
|
84
|
-
s.add_dependency(%q<rspec>, [">= 2.0.0.a7"])
|
85
|
-
s.add_dependency(%q<webrat>, [">= 0.7.0"])
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|