rspec-rails 3.4.2 → 3.5.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +23 -2
- data/{License.md → LICENSE.md} +0 -0
- data/README.md +1 -1
- data/lib/generators/rspec/feature/feature_generator.rb +15 -2
- data/lib/generators/rspec/feature/templates/feature_singular_spec.rb +5 -0
- data/lib/generators/rspec/mailer/templates/mailer_spec.rb +2 -2
- data/lib/rspec/rails/adapters.rb +13 -1
- data/lib/rspec/rails/configuration.rb +22 -7
- data/lib/rspec/rails/example/helper_example_group.rb +9 -2
- data/lib/rspec/rails/example/view_example_group.rb +16 -2
- data/lib/rspec/rails/fixture_support.rb +27 -1
- data/lib/rspec/rails/matchers/active_job.rb +3 -0
- data/lib/rspec/rails/matchers/have_http_status.rb +6 -3
- data/lib/rspec/rails/matchers/routing_matchers.rb +1 -1
- data/lib/rspec/rails/vendor/capybara.rb +4 -2
- data/lib/rspec/rails/version.rb +1 -1
- data/lib/rspec/rails/view_path_builder.rb +29 -0
- data/lib/rspec/rails/view_spec_methods.rb +56 -0
- metadata +27 -42
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08859ba10ff07a8c852ea2876b8a7ea64d67c2fb
|
4
|
+
data.tar.gz: f7bd3a8ca6a57eb36cf785899477b50bc9e037bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4efe07fbf434ab02bf07c7b24a454bc5d4740398d9ecdd71087046cdbc02b41e046b5bf926cead6cceed9fc415218a35a46677bb57702eead1f01ab8d5b41221
|
7
|
+
data.tar.gz: 0d3e500e662a15665e435e1b04df591ab87ce52877693d337cb2d9fd1591236154c509045758d530730d1180ed1e3b57d75f5126b948eb742ba97ced15b32eb9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,7 +1,29 @@
|
|
1
|
+
### 3.5.0.development
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.4.2...v3.5.0.beta1)
|
3
|
+
|
4
|
+
### 3.5.0.beta1 2016-02-06
|
5
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.4.2...v3.5.0.beta1)
|
6
|
+
|
7
|
+
Enhancements:
|
8
|
+
|
9
|
+
* Add a `---singularize` option for the feature spec generator (Felicity McCabe,
|
10
|
+
#1503)
|
11
|
+
* Prevent leaking TestUnit methods in Rails 4+ (Fernando Seror Garcia, #1512)
|
12
|
+
* Add support for Rails 5 (Sam Phippen, #1492)
|
13
|
+
|
14
|
+
Bug fixes:
|
15
|
+
|
16
|
+
* Make it possible to write nested specs within helper specs on classes that are
|
17
|
+
internal to helper classes. (Sam Phippen, Peter Swan, #1499).
|
18
|
+
* Warn if a fixture method is called from a `before(:context)` block, instead of
|
19
|
+
crashing with a `undefined method for nil:NilClass`. (Sam Phippen, #1501)
|
20
|
+
* Expose path to view specs (Ryan Clark, Sarah Mei, Sam Phippen, #1402)
|
21
|
+
* Prevent installing Rails 3.2.22.1 on Ruby 1.8.7. (Jon Rowe, #1540)
|
22
|
+
|
1
23
|
### 3.4.2 / 2016-02-02
|
2
24
|
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.4.1...v3.4.2)
|
3
25
|
|
4
|
-
Bug
|
26
|
+
Bug Fixes:
|
5
27
|
|
6
28
|
* Cache template resolvers during path lookup to prevent performance
|
7
29
|
regression from #1535. (Andrew White, #1544)
|
@@ -14,7 +36,6 @@ Bug Fixes:
|
|
14
36
|
* Fix no method error when rendering templates with explicit `:file`
|
15
37
|
parameters for Rails version `4.2.5.1`. (Andrew White, Sam Phippen, #1535)
|
16
38
|
|
17
|
-
|
18
39
|
### 3.4.0 / 2015-11-11
|
19
40
|
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.3.3...v3.4.0)
|
20
41
|
|
data/{License.md → LICENSE.md}
RENAMED
File without changes
|
data/README.md
CHANGED
@@ -20,7 +20,7 @@ RSpec repos as well. Add the following to your `Gemfile`:
|
|
20
20
|
|
21
21
|
```ruby
|
22
22
|
%w[rspec-core rspec-expectations rspec-mocks rspec-rails rspec-support].each do |lib|
|
23
|
-
gem lib, :git => "
|
23
|
+
gem lib, :git => "https://github.com/rspec/#{lib}.git", :branch => 'master'
|
24
24
|
end
|
25
25
|
```
|
26
26
|
|
@@ -4,12 +4,25 @@ module Rspec
|
|
4
4
|
module Generators
|
5
5
|
# @private
|
6
6
|
class FeatureGenerator < Base
|
7
|
-
class_option :feature_specs, :type => :boolean, :default => true,
|
7
|
+
class_option :feature_specs, :type => :boolean, :default => true, :desc => "Generate feature specs"
|
8
|
+
class_option :singularize, :type => :boolean, :default => false, :desc => "Singularize the generated feature"
|
8
9
|
|
9
10
|
def generate_feature_spec
|
10
11
|
return unless options[:feature_specs]
|
11
12
|
|
12
|
-
template
|
13
|
+
template template_name, File.join('spec/features', class_path, filename)
|
14
|
+
end
|
15
|
+
|
16
|
+
def template_name
|
17
|
+
options[:singularize] ? 'feature_singular_spec.rb' : 'feature_spec.rb'
|
18
|
+
end
|
19
|
+
|
20
|
+
def filename
|
21
|
+
if options[:singularize]
|
22
|
+
"#{table_name.singularize}_spec.rb"
|
23
|
+
else
|
24
|
+
"#{table_name}_spec.rb"
|
25
|
+
end
|
13
26
|
end
|
14
27
|
end
|
15
28
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
require "rails_helper"
|
2
2
|
|
3
3
|
<% module_namespacing do -%>
|
4
|
-
RSpec.describe <%= class_name %>, <%= type_metatag(:mailer) %> do
|
4
|
+
RSpec.describe <%= class_name %><%= Rails.version.to_f >= 5.0 ? "Mailer" : "" %>, <%= type_metatag(:mailer) %> do
|
5
5
|
<% for action in actions -%>
|
6
6
|
describe "<%= action %>" do
|
7
|
-
let(:mail) { <%= class_name %>.<%= action %> }
|
7
|
+
let(:mail) { <%= class_name %><%= Rails.version.to_f >= 5.0 ? "Mailer" : "" %>.<%= action %> }
|
8
8
|
|
9
9
|
it "renders the headers" do
|
10
10
|
expect(mail.subject).to eq(<%= action.to_s.humanize.inspect %>)
|
data/lib/rspec/rails/adapters.rb
CHANGED
@@ -201,7 +201,7 @@ module RSpec
|
|
201
201
|
select do |m|
|
202
202
|
m.to_s =~ /^(assert|flunk|refute)/
|
203
203
|
end
|
204
|
-
methods +
|
204
|
+
methods + test_unit_specific_methods
|
205
205
|
end
|
206
206
|
|
207
207
|
def define_assertion_delegators
|
@@ -211,6 +211,18 @@ module RSpec
|
|
211
211
|
end
|
212
212
|
end
|
213
213
|
end
|
214
|
+
|
215
|
+
# Starting on Rails 4, Minitest is the default testing framework so no
|
216
|
+
# need to add TestUnit specific methods.
|
217
|
+
if ::Rails::VERSION::STRING >= '4.0.0'
|
218
|
+
def test_unit_specific_methods
|
219
|
+
[]
|
220
|
+
end
|
221
|
+
else
|
222
|
+
def test_unit_specific_methods
|
223
|
+
[:build_message]
|
224
|
+
end
|
225
|
+
end
|
214
226
|
end
|
215
227
|
|
216
228
|
class AssertionDelegator
|
@@ -36,6 +36,19 @@ module RSpec
|
|
36
36
|
:feature => %w[spec features]
|
37
37
|
}
|
38
38
|
|
39
|
+
# Sets up the different example group modules for the different spec types
|
40
|
+
#
|
41
|
+
# @api private
|
42
|
+
def self.add_test_type_configurations(config)
|
43
|
+
config.include RSpec::Rails::ControllerExampleGroup, :type => :controller
|
44
|
+
config.include RSpec::Rails::HelperExampleGroup, :type => :helper
|
45
|
+
config.include RSpec::Rails::ModelExampleGroup, :type => :model
|
46
|
+
config.include RSpec::Rails::RequestExampleGroup, :type => :request
|
47
|
+
config.include RSpec::Rails::RoutingExampleGroup, :type => :routing
|
48
|
+
config.include RSpec::Rails::ViewExampleGroup, :type => :view
|
49
|
+
config.include RSpec::Rails::FeatureExampleGroup, :type => :feature
|
50
|
+
end
|
51
|
+
|
39
52
|
# @private
|
40
53
|
def self.initialize_configuration(config)
|
41
54
|
config.backtrace_exclusion_patterns << /vendor\//
|
@@ -98,13 +111,15 @@ module RSpec
|
|
98
111
|
end
|
99
112
|
end
|
100
113
|
|
101
|
-
config
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
114
|
+
add_test_type_configurations(config)
|
115
|
+
|
116
|
+
if defined?(::Rails::Controller::Testing)
|
117
|
+
[:controller, :view, :request].each do |type|
|
118
|
+
config.include ::Rails::Controller::Testing::TestProcess, :type => type
|
119
|
+
config.include ::Rails::Controller::Testing::TemplateAssertions, :type => type
|
120
|
+
config.include ::Rails::Controller::Testing::Integration, :type => type
|
121
|
+
end
|
122
|
+
end
|
108
123
|
|
109
124
|
if defined?(ActionMailer)
|
110
125
|
config.include RSpec::Rails::MailerExampleGroup, :type => :mailer
|
@@ -12,8 +12,15 @@ module RSpec
|
|
12
12
|
|
13
13
|
# @private
|
14
14
|
module ClassMethods
|
15
|
-
|
16
|
-
|
15
|
+
if ::Rails::VERSION::MAJOR > 3
|
16
|
+
def determine_constant_from_test_name(_ignore)
|
17
|
+
described_class if yield(described_class)
|
18
|
+
end
|
19
|
+
else
|
20
|
+
def determine_default_helper_class(_ignore)
|
21
|
+
return unless Module === described_class && !(Class === described_class)
|
22
|
+
described_class
|
23
|
+
end
|
17
24
|
end
|
18
25
|
end
|
19
26
|
|
@@ -1,4 +1,6 @@
|
|
1
1
|
require 'rspec/rails/view_assigns'
|
2
|
+
require 'rspec/rails/view_spec_methods'
|
3
|
+
require 'rspec/rails/view_path_builder'
|
2
4
|
|
3
5
|
module RSpec
|
4
6
|
module Rails
|
@@ -157,8 +159,20 @@ module RSpec
|
|
157
159
|
end
|
158
160
|
|
159
161
|
controller.controller_path = _controller_path
|
160
|
-
|
161
|
-
|
162
|
+
|
163
|
+
path_params_to_merge = {}
|
164
|
+
path_params_to_merge[:controller] = _controller_path
|
165
|
+
path_params_to_merge[:action] = _inferred_action unless _inferred_action =~ /^_/
|
166
|
+
|
167
|
+
path_params = controller.request.path_parameters
|
168
|
+
|
169
|
+
controller.request.path_parameters = path_params.reverse_merge(path_params_to_merge)
|
170
|
+
controller.request.path = ViewPathBuilder.new(::Rails.application.routes).path_for(controller.request.path_parameters)
|
171
|
+
ViewSpecMethods.add_to(::ActionView::TestCase::TestController)
|
172
|
+
end
|
173
|
+
|
174
|
+
after do
|
175
|
+
ViewSpecMethods.remove_from(::ActionView::TestCase::TestController)
|
162
176
|
end
|
163
177
|
|
164
178
|
let(:_default_file_to_render) do |example|
|
@@ -22,8 +22,34 @@ module RSpec
|
|
22
22
|
# /TODO
|
23
23
|
|
24
24
|
self.fixture_path = RSpec.configuration.fixture_path
|
25
|
-
|
25
|
+
if ::Rails::VERSION::STRING > '5'
|
26
|
+
self.use_transactional_tests = RSpec.configuration.use_transactional_fixtures
|
27
|
+
else
|
28
|
+
self.use_transactional_fixtures = RSpec.configuration.use_transactional_fixtures
|
29
|
+
end
|
26
30
|
self.use_instantiated_fixtures = RSpec.configuration.use_instantiated_fixtures
|
31
|
+
|
32
|
+
def self.fixtures(*args)
|
33
|
+
orig_methods = private_instance_methods
|
34
|
+
super.tap do
|
35
|
+
new_methods = private_instance_methods - orig_methods
|
36
|
+
new_methods.each do |method_name|
|
37
|
+
proxy_method_warning_if_called_in_before_context_scope(method_name)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.proxy_method_warning_if_called_in_before_context_scope(method_name)
|
43
|
+
orig_implementation = instance_method(method_name)
|
44
|
+
define_method(method_name) do |*args, &blk|
|
45
|
+
if inspect.include?("before(:context)")
|
46
|
+
RSpec.warn_with("Calling fixture method in before :context ")
|
47
|
+
else
|
48
|
+
orig_implementation.bind(self).call(*args, &blk)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
27
53
|
fixtures RSpec.configuration.global_fixtures if RSpec.configuration.global_fixtures
|
28
54
|
end
|
29
55
|
end
|
@@ -158,6 +158,9 @@ module RSpec
|
|
158
158
|
# HelloJob.set(wait_until: Date.tomorrow.noon, queue: "low").perform_later(42)
|
159
159
|
# }.to have_enqueued_job.with(42).on_queue("low").at(Date.tomorrow.noon)
|
160
160
|
def have_enqueued_job(job = nil)
|
161
|
+
unless ::ActiveJob::QueueAdapters::TestAdapter === ::ActiveJob::Base.queue_adapter
|
162
|
+
raise StandardError, "To use have_enqueued_job matcher set `ActiveJob::Base.queue_adapter = :test`"
|
163
|
+
end
|
161
164
|
ActiveJob::HaveEnqueuedJob.new(job)
|
162
165
|
end
|
163
166
|
end
|
@@ -41,11 +41,14 @@ module RSpec
|
|
41
41
|
# Acts As Capybara Session
|
42
42
|
# Hack to support `Capybara::Session` without having to load
|
43
43
|
# Capybara or catch `NameError`s for the undefined constants
|
44
|
-
|
44
|
+
obj = ActionDispatch::Response.new.tap do |resp|
|
45
45
|
resp.status = obj.status_code
|
46
|
-
resp.headers
|
46
|
+
resp.headers.clear
|
47
|
+
resp.headers.merge!(obj.response_headers)
|
47
48
|
resp.body = obj.body
|
49
|
+
resp.request = ActionDispatch::Request.new({})
|
48
50
|
end
|
51
|
+
::ActionDispatch::TestResponse.from_response(obj)
|
49
52
|
else
|
50
53
|
raise TypeError, "Invalid response type: #{obj}"
|
51
54
|
end
|
@@ -83,7 +86,7 @@ module RSpec
|
|
83
86
|
# @return [Boolean] `true` if the numeric code matched the `response` code
|
84
87
|
def matches?(response)
|
85
88
|
test_response = as_test_response(response)
|
86
|
-
@actual = test_response.response_code
|
89
|
+
@actual = test_response.response_code.to_i
|
87
90
|
expected == @actual
|
88
91
|
rescue TypeError => _ignored
|
89
92
|
@invalid_response = response
|
@@ -19,7 +19,7 @@ module RSpec
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def matches?(verb_to_path_map)
|
22
|
-
@actual =
|
22
|
+
@actual = verb_to_path_map
|
23
23
|
# assert_recognizes does not consider ActionController::RoutingError an
|
24
24
|
# assertion failure, so we have to capture that and Assertion here.
|
25
25
|
match_unless_raises ActiveSupport::TestCase::Assertion, ActionController::RoutingError do
|
@@ -9,8 +9,10 @@ rescue LoadError
|
|
9
9
|
end
|
10
10
|
|
11
11
|
if defined?(Capybara)
|
12
|
-
require 'rspec/support/
|
13
|
-
RSpec::Support::
|
12
|
+
require 'rspec/support/comparable_version'
|
13
|
+
unless RSpec::Support::ComparableVersion.new(Capybara::VERSION) >= '2.2.0'
|
14
|
+
raise "You are using capybara #{Capybara::VERSION}. RSpec requires >= 2.2.0."
|
15
|
+
end
|
14
16
|
|
15
17
|
RSpec.configure do |c|
|
16
18
|
if defined?(Capybara::DSL)
|
data/lib/rspec/rails/version.rb
CHANGED
@@ -0,0 +1,29 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Rails
|
3
|
+
# Builds paths for view specs using a particular route set.
|
4
|
+
class ViewPathBuilder
|
5
|
+
def initialize(route_set)
|
6
|
+
self.class.send(:include, route_set.url_helpers)
|
7
|
+
end
|
8
|
+
|
9
|
+
# Given a hash of parameters, build a view path, if possible.
|
10
|
+
# Returns nil if no path can be built from the given params.
|
11
|
+
#
|
12
|
+
# @example
|
13
|
+
# # path can be built because all required params are present in the hash
|
14
|
+
# view_path_builder = ViewPathBuilder.new(::Rails.application.routes)
|
15
|
+
# view_path_builder.path_for({ :controller => 'posts', :action => 'show', :id => '54' })
|
16
|
+
# # => "/post/54"
|
17
|
+
#
|
18
|
+
# @example
|
19
|
+
# # path cannot be built because the params are missing a required element (:id)
|
20
|
+
# view_path_builder.path_for({ :controller => 'posts', :action => 'delete' })
|
21
|
+
# # => nil
|
22
|
+
def path_for(path_params)
|
23
|
+
url_for(path_params.merge(:only_path => true))
|
24
|
+
rescue => e
|
25
|
+
e.message
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Rails
|
3
|
+
# Adds methods (generally to ActionView::TestCase::TestController).
|
4
|
+
# Intended for use in view specs.
|
5
|
+
module ViewSpecMethods
|
6
|
+
module_function
|
7
|
+
|
8
|
+
# Adds methods `extra_params=` and `extra_params` to the indicated class.
|
9
|
+
# When class is `::ActionView::TestCase::TestController`, these methods
|
10
|
+
# are exposed in view specs on the `controller` object.
|
11
|
+
def add_to(klass)
|
12
|
+
return if klass.method_defined?(:extra_params) && klass.method_defined?(:extra_params=)
|
13
|
+
|
14
|
+
klass.module_exec do
|
15
|
+
# Set any extra parameters that rendering a URL for this view
|
16
|
+
# would require.
|
17
|
+
#
|
18
|
+
# @example
|
19
|
+
#
|
20
|
+
# # In "spec/views/widgets/show.html.erb_spec.rb":
|
21
|
+
# before do
|
22
|
+
# widget = Widget.create!(:name => "slicer")
|
23
|
+
# controller.extra_params = { :id => widget.id }
|
24
|
+
# end
|
25
|
+
def extra_params=(hash)
|
26
|
+
@extra_params = hash
|
27
|
+
request.path =
|
28
|
+
ViewPathBuilder.new(::Rails.application.routes).path_for(
|
29
|
+
extra_params.merge(request.path_parameters)
|
30
|
+
)
|
31
|
+
end
|
32
|
+
|
33
|
+
# Use to read extra parameters that are set in the view spec.
|
34
|
+
#
|
35
|
+
# @example
|
36
|
+
#
|
37
|
+
# # After the before in the above example:
|
38
|
+
# controller.extra_params
|
39
|
+
# # => { :id => 4 }
|
40
|
+
def extra_params
|
41
|
+
@extra_params ||= {}
|
42
|
+
@extra_params.dup.freeze
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Removes methods `extra_params=` and `extra_params` from the indicated class.
|
48
|
+
def remove_from(klass)
|
49
|
+
klass.module_exec do
|
50
|
+
undef extra_params= if klass.method_defined?(:extra_params=)
|
51
|
+
undef extra_params if klass.method_defined?(:extra_params)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chelimsky
|
@@ -44,7 +44,7 @@ cert_chain:
|
|
44
44
|
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
|
45
45
|
F3MdtaDehhjC
|
46
46
|
-----END CERTIFICATE-----
|
47
|
-
date: 2016-02-
|
47
|
+
date: 2016-02-06 00:00:00.000000000 Z
|
48
48
|
dependencies:
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: activesupport
|
@@ -53,9 +53,6 @@ dependencies:
|
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '3.0'
|
56
|
-
- - "<"
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
version: '4.3'
|
59
56
|
type: :runtime
|
60
57
|
prerelease: false
|
61
58
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -63,9 +60,6 @@ dependencies:
|
|
63
60
|
- - ">="
|
64
61
|
- !ruby/object:Gem::Version
|
65
62
|
version: '3.0'
|
66
|
-
- - "<"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '4.3'
|
69
63
|
- !ruby/object:Gem::Dependency
|
70
64
|
name: actionpack
|
71
65
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,9 +67,6 @@ dependencies:
|
|
73
67
|
- - ">="
|
74
68
|
- !ruby/object:Gem::Version
|
75
69
|
version: '3.0'
|
76
|
-
- - "<"
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version: '4.3'
|
79
70
|
type: :runtime
|
80
71
|
prerelease: false
|
81
72
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -83,9 +74,6 @@ dependencies:
|
|
83
74
|
- - ">="
|
84
75
|
- !ruby/object:Gem::Version
|
85
76
|
version: '3.0'
|
86
|
-
- - "<"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '4.3'
|
89
77
|
- !ruby/object:Gem::Dependency
|
90
78
|
name: railties
|
91
79
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,9 +81,6 @@ dependencies:
|
|
93
81
|
- - ">="
|
94
82
|
- !ruby/object:Gem::Version
|
95
83
|
version: '3.0'
|
96
|
-
- - "<"
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: '4.3'
|
99
84
|
type: :runtime
|
100
85
|
prerelease: false
|
101
86
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -103,79 +88,76 @@ dependencies:
|
|
103
88
|
- - ">="
|
104
89
|
- !ruby/object:Gem::Version
|
105
90
|
version: '3.0'
|
106
|
-
- - "<"
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
version: '4.3'
|
109
91
|
- !ruby/object:Gem::Dependency
|
110
92
|
name: rspec-core
|
111
93
|
requirement: !ruby/object:Gem::Requirement
|
112
94
|
requirements:
|
113
|
-
- -
|
95
|
+
- - '='
|
114
96
|
- !ruby/object:Gem::Version
|
115
|
-
version: 3.
|
97
|
+
version: 3.5.0.beta1
|
116
98
|
type: :runtime
|
117
99
|
prerelease: false
|
118
100
|
version_requirements: !ruby/object:Gem::Requirement
|
119
101
|
requirements:
|
120
|
-
- -
|
102
|
+
- - '='
|
121
103
|
- !ruby/object:Gem::Version
|
122
|
-
version: 3.
|
104
|
+
version: 3.5.0.beta1
|
123
105
|
- !ruby/object:Gem::Dependency
|
124
106
|
name: rspec-expectations
|
125
107
|
requirement: !ruby/object:Gem::Requirement
|
126
108
|
requirements:
|
127
|
-
- -
|
109
|
+
- - '='
|
128
110
|
- !ruby/object:Gem::Version
|
129
|
-
version: 3.
|
111
|
+
version: 3.5.0.beta1
|
130
112
|
type: :runtime
|
131
113
|
prerelease: false
|
132
114
|
version_requirements: !ruby/object:Gem::Requirement
|
133
115
|
requirements:
|
134
|
-
- -
|
116
|
+
- - '='
|
135
117
|
- !ruby/object:Gem::Version
|
136
|
-
version: 3.
|
118
|
+
version: 3.5.0.beta1
|
137
119
|
- !ruby/object:Gem::Dependency
|
138
120
|
name: rspec-mocks
|
139
121
|
requirement: !ruby/object:Gem::Requirement
|
140
122
|
requirements:
|
141
|
-
- -
|
123
|
+
- - '='
|
142
124
|
- !ruby/object:Gem::Version
|
143
|
-
version: 3.
|
125
|
+
version: 3.5.0.beta1
|
144
126
|
type: :runtime
|
145
127
|
prerelease: false
|
146
128
|
version_requirements: !ruby/object:Gem::Requirement
|
147
129
|
requirements:
|
148
|
-
- -
|
130
|
+
- - '='
|
149
131
|
- !ruby/object:Gem::Version
|
150
|
-
version: 3.
|
132
|
+
version: 3.5.0.beta1
|
151
133
|
- !ruby/object:Gem::Dependency
|
152
134
|
name: rspec-support
|
153
135
|
requirement: !ruby/object:Gem::Requirement
|
154
136
|
requirements:
|
155
|
-
- -
|
137
|
+
- - '='
|
156
138
|
- !ruby/object:Gem::Version
|
157
|
-
version: 3.
|
139
|
+
version: 3.5.0.beta1
|
158
140
|
type: :runtime
|
159
141
|
prerelease: false
|
160
142
|
version_requirements: !ruby/object:Gem::Requirement
|
161
143
|
requirements:
|
162
|
-
- -
|
144
|
+
- - '='
|
163
145
|
- !ruby/object:Gem::Version
|
164
|
-
version: 3.
|
146
|
+
version: 3.5.0.beta1
|
165
147
|
- !ruby/object:Gem::Dependency
|
166
148
|
name: rake
|
167
149
|
requirement: !ruby/object:Gem::Requirement
|
168
150
|
requirements:
|
169
151
|
- - "~>"
|
170
152
|
- !ruby/object:Gem::Version
|
171
|
-
version: 10.0
|
153
|
+
version: '10.0'
|
172
154
|
type: :development
|
173
155
|
prerelease: false
|
174
156
|
version_requirements: !ruby/object:Gem::Requirement
|
175
157
|
requirements:
|
176
158
|
- - "~>"
|
177
159
|
- !ruby/object:Gem::Version
|
178
|
-
version: 10.0
|
160
|
+
version: '10.0'
|
179
161
|
- !ruby/object:Gem::Dependency
|
180
162
|
name: cucumber
|
181
163
|
requirement: !ruby/object:Gem::Requirement
|
@@ -228,13 +210,14 @@ files:
|
|
228
210
|
- ".yardopts"
|
229
211
|
- Capybara.md
|
230
212
|
- Changelog.md
|
231
|
-
-
|
213
|
+
- LICENSE.md
|
232
214
|
- README.md
|
233
215
|
- lib/generators/rspec.rb
|
234
216
|
- lib/generators/rspec/controller/controller_generator.rb
|
235
217
|
- lib/generators/rspec/controller/templates/controller_spec.rb
|
236
218
|
- lib/generators/rspec/controller/templates/view_spec.rb
|
237
219
|
- lib/generators/rspec/feature/feature_generator.rb
|
220
|
+
- lib/generators/rspec/feature/templates/feature_singular_spec.rb
|
238
221
|
- lib/generators/rspec/feature/templates/feature_spec.rb
|
239
222
|
- lib/generators/rspec/helper/helper_generator.rb
|
240
223
|
- lib/generators/rspec/helper/templates/helper_spec.rb
|
@@ -297,7 +280,9 @@ files:
|
|
297
280
|
- lib/rspec/rails/vendor/capybara.rb
|
298
281
|
- lib/rspec/rails/version.rb
|
299
282
|
- lib/rspec/rails/view_assigns.rb
|
283
|
+
- lib/rspec/rails/view_path_builder.rb
|
300
284
|
- lib/rspec/rails/view_rendering.rb
|
285
|
+
- lib/rspec/rails/view_spec_methods.rb
|
301
286
|
homepage: http://github.com/rspec/rspec-rails
|
302
287
|
licenses:
|
303
288
|
- MIT
|
@@ -314,12 +299,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
314
299
|
version: '0'
|
315
300
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
316
301
|
requirements:
|
317
|
-
- - "
|
302
|
+
- - ">"
|
318
303
|
- !ruby/object:Gem::Version
|
319
|
-
version:
|
304
|
+
version: 1.3.1
|
320
305
|
requirements: []
|
321
306
|
rubyforge_project:
|
322
|
-
rubygems_version: 2.5.1
|
307
|
+
rubygems_version: 2.4.5.1
|
323
308
|
signing_key:
|
324
309
|
specification_version: 4
|
325
310
|
summary: RSpec for Rails
|
metadata.gz.sig
CHANGED
Binary file
|