rspec-rails 2.0.0.a8 → 2.0.0.a9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +3 -1
- data/VERSION +1 -1
- data/example_app_template.rb +12 -3
- data/lib/generators/rspec/controller/templates/view_spec.rb +2 -6
- data/lib/generators/rspec/helper/templates/helper_spec.rb +1 -0
- data/lib/generators/rspec/install/templates/lib/tasks/rspec.rake +27 -77
- data/lib/generators/rspec/mailer/mailer_generator.rb +2 -3
- data/lib/generators/rspec/mailer/templates/fixture +1 -1
- data/lib/generators/rspec/mailer/templates/mailer_spec.rb +5 -4
- data/lib/generators/rspec/model/templates/model_spec.rb +1 -9
- data/lib/generators/rspec/observer/templates/observer_spec.rb +2 -2
- data/lib/generators/rspec/scaffold/templates/edit_spec.rb +1 -1
- data/lib/generators/rspec/scaffold/templates/index_spec.rb +1 -1
- data/lib/generators/rspec/scaffold/templates/new_spec.rb +1 -1
- data/lib/generators/rspec/scaffold/templates/show_spec.rb +1 -1
- data/lib/generators/rspec/view/templates/view_spec.rb +2 -6
- data/lib/rspec/rails/example.rb +1 -0
- data/lib/rspec/rails/example/mailer_example_group.rb +18 -0
- data/lib/rspec/rails/example/view_example_group.rb +19 -3
- data/lib/rspec/rails/version.rb +1 -1
- data/rspec-rails.gemspec +4 -6
- metadata +33 -16
- data/lib/generators/rspec/plugin/plugin_generator.rb +0 -11
- data/lib/generators/rspec/plugin/templates/%file_name%_spec.rb.tt +0 -5
- data/lib/generators/rspec/plugin/templates/test_helper.rb +0 -5
data/README.markdown
CHANGED
@@ -27,7 +27,7 @@ Configure:
|
|
27
27
|
|
28
28
|
Add this line to the Gemfile:
|
29
29
|
|
30
|
-
gem "rspec-rails", ">= 2.0.0.
|
30
|
+
gem "rspec-rails", ">= 2.0.0.a9"
|
31
31
|
|
32
32
|
This will expose generators, including rspec:install. Now you can run:
|
33
33
|
|
@@ -50,6 +50,8 @@ Currently supported:
|
|
50
50
|
* controller specs in spec/controllers
|
51
51
|
* no view isolation yet
|
52
52
|
* view specs in spec/views
|
53
|
+
* mailer specs in spec/mailers
|
54
|
+
* observer specs in spec/models
|
53
55
|
* request specs in spec/requests
|
54
56
|
* these wrap rails integration tests
|
55
57
|
* rails assertions
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0.
|
1
|
+
2.0.0.a9
|
data/example_app_template.rb
CHANGED
@@ -2,17 +2,26 @@ $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
|
|
2
2
|
require 'rspec/rails/version'
|
3
3
|
# This needs to be installed on the system, as well as all of its rspec-2 deps
|
4
4
|
# - would be nicer if we could source them from the <repo>/pkg dirs
|
5
|
-
gem 'rspec-rails', :
|
5
|
+
gem 'rspec-rails', :path => File.expand_path('../../../', __FILE__)
|
6
6
|
|
7
7
|
run('bundle install')
|
8
8
|
|
9
9
|
run('script/rails g rspec:install')
|
10
|
-
run('script/rails g model thing name:string')
|
11
|
-
run('script/rails g scaffold widgets name:string')
|
12
10
|
run('script/rails g controller wombats index')
|
13
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')
|
14
16
|
|
15
17
|
run('rake db:migrate')
|
16
18
|
run('rake db:test:prepare')
|
17
19
|
run('rspec spec -cfdoc')
|
18
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')
|
@@ -1,9 +1,5 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe "
|
4
|
-
|
5
|
-
it "should tell you where to find the file" do
|
6
|
-
render
|
7
|
-
response.should have_selector('p', :content => "Find me in app/views/<%= file_path %>/<%= @action %>")
|
8
|
-
end
|
3
|
+
describe "<%= file_name %>/<%= @action %>.html.<%= options[:template_engine] %>" do
|
4
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
9
5
|
end
|
@@ -38,82 +38,32 @@ task :stats => "spec:statsetup"
|
|
38
38
|
desc "Run all specs in spec directory (excluding plugin specs)"
|
39
39
|
Rspec::Core::RakeTask.new(:spec => spec_prereq)
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
# IO.readlines("#{Rails.root}/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
|
49
|
-
# end
|
50
|
-
# end
|
51
|
-
|
52
|
-
# desc "Print Rspecdoc for all specs (excluding plugin specs)"
|
53
|
-
# Rspec::Core::RakeTask.new(:doc) do |t|
|
54
|
-
# t.spec_opts = ["--format", "specdoc", "--dry-run"]
|
55
|
-
# t.spec_files = FileList['spec/**/*_spec.rb']
|
56
|
-
# end
|
57
|
-
|
58
|
-
# desc "Print Rspecdoc for all plugin examples"
|
59
|
-
# Rspec::Core::RakeTask.new(:plugin_doc) do |t|
|
60
|
-
# t.spec_opts = ["--format", "specdoc", "--dry-run"]
|
61
|
-
# t.spec_files = FileList['vendor/plugins/**/spec/**/*_spec.rb'].exclude('vendor/plugins/rspec/*')
|
62
|
-
# end
|
63
|
-
|
64
|
-
# [:models, :controllers, :views, :helpers, :lib, :integration].each do |sub|
|
65
|
-
# desc "Run the code examples in spec/#{sub}"
|
66
|
-
# Rspec::Core::RakeTask.new(sub => spec_prereq) do |t|
|
67
|
-
# t.spec_opts = ['--options', "\"#{Rails.root}/spec/spec.opts\""]
|
68
|
-
# t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"]
|
69
|
-
# end
|
70
|
-
# end
|
71
|
-
|
72
|
-
# desc "Run the code examples in vendor/plugins (except RRspec's own)"
|
73
|
-
# Rspec::Core::RakeTask.new(:plugins => spec_prereq) do |t|
|
74
|
-
# t.spec_opts = ['--options', "\"#{Rails.root}/spec/spec.opts\""]
|
75
|
-
# t.spec_files = FileList['vendor/plugins/**/spec/**/*_spec.rb'].exclude('vendor/plugins/rspec/*').exclude("vendor/plugins/rspec-rails/*")
|
76
|
-
# end
|
77
|
-
|
78
|
-
# namespace :plugins do
|
79
|
-
# desc "Runs the examples for rspec_on_rails"
|
80
|
-
# Rspec::Core::RakeTask.new(:rspec_on_rails) do |t|
|
81
|
-
# t.spec_opts = ['--options', "\"#{Rails.root}/spec/spec.opts\""]
|
82
|
-
# t.spec_files = FileList['vendor/plugins/rspec-rails/spec/**/*_spec.rb']
|
83
|
-
# end
|
84
|
-
# end
|
85
|
-
|
86
|
-
# task :statsetup do
|
87
|
-
# require 'code_statistics'
|
88
|
-
# ::STATS_DIRECTORIES << %w(Model\ specs spec/models) if File.exist?('spec/models')
|
89
|
-
# ::STATS_DIRECTORIES << %w(View\ specs spec/views) if File.exist?('spec/views')
|
90
|
-
# ::STATS_DIRECTORIES << %w(Controller\ specs spec/controllers) if File.exist?('spec/controllers')
|
91
|
-
# ::STATS_DIRECTORIES << %w(Helper\ specs spec/helpers) if File.exist?('spec/helpers')
|
92
|
-
# ::STATS_DIRECTORIES << %w(Library\ specs spec/lib) if File.exist?('spec/lib')
|
93
|
-
# ::STATS_DIRECTORIES << %w(Routing\ specs spec/routing) if File.exist?('spec/routing')
|
94
|
-
# ::STATS_DIRECTORIES << %w(Integration\ specs spec/integration) if File.exist?('spec/integration')
|
95
|
-
# ::CodeStatistics::TEST_TYPES << "Model specs" if File.exist?('spec/models')
|
96
|
-
# ::CodeStatistics::TEST_TYPES << "View specs" if File.exist?('spec/views')
|
97
|
-
# ::CodeStatistics::TEST_TYPES << "Controller specs" if File.exist?('spec/controllers')
|
98
|
-
# ::CodeStatistics::TEST_TYPES << "Helper specs" if File.exist?('spec/helpers')
|
99
|
-
# ::CodeStatistics::TEST_TYPES << "Library specs" if File.exist?('spec/lib')
|
100
|
-
# ::CodeStatistics::TEST_TYPES << "Routing specs" if File.exist?('spec/routing')
|
101
|
-
# ::CodeStatistics::TEST_TYPES << "Integration specs" if File.exist?('spec/integration')
|
102
|
-
# end
|
41
|
+
namespace :spec do
|
42
|
+
[:requests, :models, :controllers, :views, :helpers, :mailers, :lib].each do |sub|
|
43
|
+
desc "Run the code examples in spec/#{sub}"
|
44
|
+
Rspec::Core::RakeTask.new(sub => spec_prereq) do |t|
|
45
|
+
t.pattern = "./spec/#{sub}/**/*_spec.rb"
|
46
|
+
end
|
47
|
+
end
|
103
48
|
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
49
|
+
task :statsetup do
|
50
|
+
require 'rails/code_statistics'
|
51
|
+
::STATS_DIRECTORIES << %w(Model\ specs spec/models) if File.exist?('spec/models')
|
52
|
+
::STATS_DIRECTORIES << %w(View\ specs spec/views) if File.exist?('spec/views')
|
53
|
+
::STATS_DIRECTORIES << %w(Controller\ specs spec/controllers) if File.exist?('spec/controllers')
|
54
|
+
::STATS_DIRECTORIES << %w(Helper\ specs spec/helpers) if File.exist?('spec/helpers')
|
55
|
+
::STATS_DIRECTORIES << %w(Library\ specs spec/lib) if File.exist?('spec/lib')
|
56
|
+
::STATS_DIRECTORIES << %w(Mailer\ specs spec/mailers) if File.exist?('spec/mailers')
|
57
|
+
::STATS_DIRECTORIES << %w(Routing\ specs spec/routing) if File.exist?('spec/routing')
|
58
|
+
::STATS_DIRECTORIES << %w(Request\ specs spec/requests) if File.exist?('spec/requests')
|
59
|
+
::CodeStatistics::TEST_TYPES << "Model specs" if File.exist?('spec/models')
|
60
|
+
::CodeStatistics::TEST_TYPES << "View specs" if File.exist?('spec/views')
|
61
|
+
::CodeStatistics::TEST_TYPES << "Controller specs" if File.exist?('spec/controllers')
|
62
|
+
::CodeStatistics::TEST_TYPES << "Helper specs" if File.exist?('spec/helpers')
|
63
|
+
::CodeStatistics::TEST_TYPES << "Library specs" if File.exist?('spec/lib')
|
64
|
+
::CodeStatistics::TEST_TYPES << "Mailer specs" if File.exist?('spec/mailer')
|
65
|
+
::CodeStatistics::TEST_TYPES << "Routing specs" if File.exist?('spec/routing')
|
66
|
+
::CodeStatistics::TEST_TYPES << "Request specs" if File.exist?('spec/requests')
|
67
|
+
end
|
68
|
+
end
|
111
69
|
|
112
|
-
# require 'active_record/fixtures'
|
113
|
-
# (ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/).map {|f| File.join(fixtures_dir, f) } : Dir.glob(File.join(fixtures_dir, '*.{yml,csv}'))).each do |fixture_file|
|
114
|
-
# Fixtures.create_fixtures(File.dirname(fixture_file), File.basename(fixture_file, '.*'))
|
115
|
-
# end
|
116
|
-
# end
|
117
|
-
# end
|
118
|
-
# end
|
119
|
-
# end
|
@@ -5,9 +5,8 @@ module Rspec
|
|
5
5
|
class MailerGenerator < Base
|
6
6
|
argument :actions, :type => :array, :default => [], :banner => "method method"
|
7
7
|
|
8
|
-
def
|
9
|
-
template "mailer_spec.rb",
|
10
|
-
File.join('spec', 'models', class_path, "#{file_name}_spec.rb")
|
8
|
+
def create_spec_files
|
9
|
+
template "mailer_spec.rb", File.join('spec/mailers', class_path, "#{file_name}_spec.rb")
|
11
10
|
end
|
12
11
|
|
13
12
|
def create_fixtures_files
|
@@ -3,11 +3,12 @@ require 'spec_helper'
|
|
3
3
|
describe <%= class_name %> do
|
4
4
|
<% for action in actions -%>
|
5
5
|
it "should deliver <%= action.gsub("_", " ") %> message" do
|
6
|
-
@expected.subject =
|
7
|
-
@expected.
|
8
|
-
@expected.
|
6
|
+
@expected.subject = <%= action.to_s.humanize.inspect %>
|
7
|
+
@expected.to = "to@example.org"
|
8
|
+
@expected.from = "from@example.com"
|
9
|
+
@expected.body = read_fixture("<%= action %>")
|
9
10
|
|
10
|
-
@expected.
|
11
|
+
@expected.should == <%= class_name %>.<%= action %>
|
11
12
|
end
|
12
13
|
|
13
14
|
<% end -%>
|
@@ -1,13 +1,5 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe <%= class_name %> do
|
4
|
-
|
5
|
-
@valid_attributes = {
|
6
|
-
<%= attributes.map{ |a| ":#{a.name} => #{a.default.inspect}" }.join(",\n ") %>
|
7
|
-
}
|
8
|
-
end
|
9
|
-
|
10
|
-
it "should create a new instance given valid attributes" do
|
11
|
-
<%= class_name %>.create!(@valid_attributes)
|
12
|
-
end
|
4
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
13
5
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
4
|
-
describe "
|
4
|
+
describe "<%= table_name %>/edit.html.<%= options[:template_engine] %>" do
|
5
5
|
include <%= controller_class_name %>Helper
|
6
6
|
|
7
7
|
before(:each) do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
4
|
-
describe "
|
4
|
+
describe "<%= table_name %>/index.html.<%= options[:template_engine] %>" do
|
5
5
|
include <%= controller_class_name %>Helper
|
6
6
|
|
7
7
|
before(:each) do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
4
|
-
describe "
|
4
|
+
describe "<%= table_name %>/new.html.<%= options[:template_engine] %>" do
|
5
5
|
include <%= controller_class_name %>Helper
|
6
6
|
|
7
7
|
before(:each) do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
4
|
-
describe "
|
4
|
+
describe "<%= table_name %>/show.html.<%= options[:template_engine] %>" do
|
5
5
|
include <%= controller_class_name %>Helper
|
6
6
|
before(:each) do
|
7
7
|
assign(:<%= file_name %>, @<%= file_name %> = stub_model(<%= class_name %><%= output_attributes.empty? ? ')' : ',' %>
|
@@ -1,9 +1,5 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe "
|
4
|
-
|
5
|
-
it "should tell you where to find the file" do
|
6
|
-
render
|
7
|
-
response.should have_selector('p', :content => "Find me in app/views/<%= file_path %>/<%= @action %>")
|
8
|
-
end
|
3
|
+
describe "<%= file_name %>/<%= @action %>.html.<%= options[:template_engine] %>" do
|
4
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
9
5
|
end
|
data/lib/rspec/rails/example.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
module MailerExampleGroupBehavior
|
2
|
+
|
3
|
+
def read_fixture(action)
|
4
|
+
IO.readlines(File.join(Rails.root, 'spec', 'fixtures', self.described_class.name.underscore, action))
|
5
|
+
end
|
6
|
+
|
7
|
+
Rspec.configure do |c|
|
8
|
+
c.include self, :example_group => { :describes => lambda {|k| k < ActionMailer::Base }}
|
9
|
+
c.before :each, :example_group => { :describes => lambda {|k| k < ActionMailer::Base }} do
|
10
|
+
ActionMailer::Base.delivery_method = :test
|
11
|
+
ActionMailer::Base.perform_deliveries = true
|
12
|
+
ActionMailer::Base.deliveries.clear
|
13
|
+
@expected = Mail.new
|
14
|
+
@expected.content_type ["text", "plain", { "charset" => "utf-8" }]
|
15
|
+
@expected.mime_version = '1.0'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -3,7 +3,9 @@ require 'webrat'
|
|
3
3
|
module ViewExampleGroupBehaviour
|
4
4
|
include Webrat::Matchers
|
5
5
|
|
6
|
-
class ViewExampleController < ActionController::Base
|
6
|
+
class ViewExampleController < ActionController::Base
|
7
|
+
attr_accessor :controller_path
|
8
|
+
end
|
7
9
|
|
8
10
|
module ViewExtensions
|
9
11
|
def protect_against_forgery?; end
|
@@ -29,8 +31,18 @@ module ViewExampleGroupBehaviour
|
|
29
31
|
@response
|
30
32
|
end
|
31
33
|
|
34
|
+
def file_to_render
|
35
|
+
running_example.metadata[:example_group][:description]
|
36
|
+
end
|
37
|
+
|
38
|
+
def controller_path
|
39
|
+
parts = file_to_render.split('/')
|
40
|
+
parts.pop
|
41
|
+
parts.join('/')
|
42
|
+
end
|
43
|
+
|
32
44
|
def render
|
33
|
-
@response = view.render :file =>
|
45
|
+
@response = view.render :file => file_to_render
|
34
46
|
end
|
35
47
|
|
36
48
|
def method_missing(selector, *args)
|
@@ -48,7 +60,11 @@ module ViewExampleGroupBehaviour
|
|
48
60
|
private
|
49
61
|
|
50
62
|
def controller
|
51
|
-
@controller ||=
|
63
|
+
@controller ||= begin
|
64
|
+
controller = ViewExampleController.new
|
65
|
+
controller.controller_path = controller_path
|
66
|
+
controller
|
67
|
+
end
|
52
68
|
end
|
53
69
|
|
54
70
|
end
|
data/lib/rspec/rails/version.rb
CHANGED
data/rspec-rails.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rspec-rails}
|
8
|
-
s.version = "2.0.0.
|
8
|
+
s.version = "2.0.0.a9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["David Chelimsky", "Chad Humphries"]
|
12
|
-
s.date = %q{2010-02-
|
12
|
+
s.date = %q{2010-02-21}
|
13
13
|
s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.markdown"
|
@@ -41,9 +41,6 @@ Gem::Specification.new do |s|
|
|
41
41
|
"lib/generators/rspec/model/templates/model_spec.rb",
|
42
42
|
"lib/generators/rspec/observer/observer_generator.rb",
|
43
43
|
"lib/generators/rspec/observer/templates/observer_spec.rb",
|
44
|
-
"lib/generators/rspec/plugin/plugin_generator.rb",
|
45
|
-
"lib/generators/rspec/plugin/templates/%file_name%_spec.rb.tt",
|
46
|
-
"lib/generators/rspec/plugin/templates/test_helper.rb",
|
47
44
|
"lib/generators/rspec/scaffold/scaffold_generator.rb",
|
48
45
|
"lib/generators/rspec/scaffold/templates/controller_spec.rb",
|
49
46
|
"lib/generators/rspec/scaffold/templates/edit_spec.rb",
|
@@ -57,6 +54,7 @@ Gem::Specification.new do |s|
|
|
57
54
|
"lib/rspec/rails.rb",
|
58
55
|
"lib/rspec/rails/example.rb",
|
59
56
|
"lib/rspec/rails/example/controller_example_group.rb",
|
57
|
+
"lib/rspec/rails/example/mailer_example_group.rb",
|
60
58
|
"lib/rspec/rails/example/request_example_group.rb",
|
61
59
|
"lib/rspec/rails/example/view_example_group.rb",
|
62
60
|
"lib/rspec/rails/matchers.rb",
|
@@ -68,7 +66,7 @@ Gem::Specification.new do |s|
|
|
68
66
|
s.homepage = %q{http://github.com/rspec/rspec-rails}
|
69
67
|
s.rdoc_options = ["--charset=UTF-8"]
|
70
68
|
s.require_paths = ["lib"]
|
71
|
-
s.rubygems_version = %q{1.3.
|
69
|
+
s.rubygems_version = %q{1.3.6}
|
72
70
|
s.summary = %q{Rspec-2 for Rails-3}
|
73
71
|
|
74
72
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: true
|
5
|
+
segments:
|
6
|
+
- 2
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- a9
|
10
|
+
version: 2.0.0.a9
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- David Chelimsky
|
@@ -10,29 +16,38 @@ autorequire:
|
|
10
16
|
bindir: bin
|
11
17
|
cert_chain: []
|
12
18
|
|
13
|
-
date: 2010-02-
|
19
|
+
date: 2010-02-21 00:00:00 -06:00
|
14
20
|
default_executable:
|
15
21
|
dependencies:
|
16
22
|
- !ruby/object:Gem::Dependency
|
17
23
|
name: rspec
|
18
|
-
|
19
|
-
|
20
|
-
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
21
26
|
requirements:
|
22
27
|
- - ">="
|
23
28
|
- !ruby/object:Gem::Version
|
29
|
+
segments:
|
30
|
+
- 2
|
31
|
+
- 0
|
32
|
+
- 0
|
33
|
+
- a7
|
24
34
|
version: 2.0.0.a7
|
25
|
-
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
26
37
|
- !ruby/object:Gem::Dependency
|
27
38
|
name: webrat
|
28
|
-
|
29
|
-
|
30
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
41
|
requirements:
|
32
42
|
- - ">="
|
33
43
|
- !ruby/object:Gem::Version
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
- 7
|
47
|
+
- 0
|
34
48
|
version: 0.7.0
|
35
|
-
|
49
|
+
type: :runtime
|
50
|
+
version_requirements: *id002
|
36
51
|
description:
|
37
52
|
email: dchelimsky@gmail.com;chad.humphries@gmail.com
|
38
53
|
executables: []
|
@@ -68,9 +83,6 @@ files:
|
|
68
83
|
- lib/generators/rspec/model/templates/model_spec.rb
|
69
84
|
- lib/generators/rspec/observer/observer_generator.rb
|
70
85
|
- lib/generators/rspec/observer/templates/observer_spec.rb
|
71
|
-
- lib/generators/rspec/plugin/plugin_generator.rb
|
72
|
-
- lib/generators/rspec/plugin/templates/%file_name%_spec.rb.tt
|
73
|
-
- lib/generators/rspec/plugin/templates/test_helper.rb
|
74
86
|
- lib/generators/rspec/scaffold/scaffold_generator.rb
|
75
87
|
- lib/generators/rspec/scaffold/templates/controller_spec.rb
|
76
88
|
- lib/generators/rspec/scaffold/templates/edit_spec.rb
|
@@ -84,6 +96,7 @@ files:
|
|
84
96
|
- lib/rspec/rails.rb
|
85
97
|
- lib/rspec/rails/example.rb
|
86
98
|
- lib/rspec/rails/example/controller_example_group.rb
|
99
|
+
- lib/rspec/rails/example/mailer_example_group.rb
|
87
100
|
- lib/rspec/rails/example/request_example_group.rb
|
88
101
|
- lib/rspec/rails/example/view_example_group.rb
|
89
102
|
- lib/rspec/rails/matchers.rb
|
@@ -104,18 +117,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
117
|
requirements:
|
105
118
|
- - ">="
|
106
119
|
- !ruby/object:Gem::Version
|
120
|
+
segments:
|
121
|
+
- 0
|
107
122
|
version: "0"
|
108
|
-
version:
|
109
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
124
|
requirements:
|
111
125
|
- - ">"
|
112
126
|
- !ruby/object:Gem::Version
|
127
|
+
segments:
|
128
|
+
- 1
|
129
|
+
- 3
|
130
|
+
- 1
|
113
131
|
version: 1.3.1
|
114
|
-
version:
|
115
132
|
requirements: []
|
116
133
|
|
117
134
|
rubyforge_project:
|
118
|
-
rubygems_version: 1.3.
|
135
|
+
rubygems_version: 1.3.6
|
119
136
|
signing_key:
|
120
137
|
specification_version: 3
|
121
138
|
summary: Rspec-2 for Rails-3
|