rspec-rails 2.14.2 → 2.99.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +14 -6
  2. data/Changelog.md +8 -10
  3. data/features/Autotest.md +24 -0
  4. data/features/Generators.md +24 -0
  5. data/features/GettingStarted.md +84 -0
  6. data/features/README.md +56 -0
  7. data/features/RailsVersions.md +4 -0
  8. data/features/Transactions.md +84 -0
  9. data/features/Upgrade.md +121 -0
  10. data/features/controller_specs/Cookies.md +57 -0
  11. data/features/controller_specs/README.md +45 -0
  12. data/features/controller_specs/anonymous_controller.feature +378 -0
  13. data/features/controller_specs/bypass_rescue.feature +75 -0
  14. data/features/controller_specs/controller_spec.feature +58 -0
  15. data/features/controller_specs/engine_routes.feature +51 -0
  16. data/features/controller_specs/isolation_from_views.feature +87 -0
  17. data/features/controller_specs/render_views.feature +114 -0
  18. data/features/feature_specs/feature_spec.feature +34 -0
  19. data/features/helper_specs/helper_spec.feature +122 -0
  20. data/features/mailer_specs/url_helpers.feature +38 -0
  21. data/features/matchers/README.md +18 -0
  22. data/features/matchers/new_record_matcher.feature +41 -0
  23. data/features/matchers/redirect_to_matcher.feature +40 -0
  24. data/features/matchers/relation_match_array.feature +27 -0
  25. data/features/matchers/render_template_matcher.feature +49 -0
  26. data/features/mocks/mock_model.feature +147 -0
  27. data/features/mocks/stub_model.feature +58 -0
  28. data/features/model_specs/README.md +21 -0
  29. data/features/model_specs/errors_on.feature +51 -0
  30. data/features/model_specs/records.feature +27 -0
  31. data/features/model_specs/transactional_examples.feature +109 -0
  32. data/features/request_specs/request_spec.feature +49 -0
  33. data/features/routing_specs/README.md +16 -0
  34. data/features/routing_specs/be_routable_matcher.feature +80 -0
  35. data/features/routing_specs/engine_routes.feature +38 -0
  36. data/features/routing_specs/named_routes.feature +18 -0
  37. data/features/routing_specs/route_to_matcher.feature +90 -0
  38. data/features/step_definitions/additional_cli_steps.rb +4 -0
  39. data/features/step_definitions/model_steps.rb +3 -0
  40. data/features/support/env.rb +53 -0
  41. data/features/support/rails_versions.rb +4 -0
  42. data/features/support/rubinius.rb +6 -0
  43. data/features/view_specs/inferred_controller_path.feature +45 -0
  44. data/features/view_specs/stub_template.feature +51 -0
  45. data/features/view_specs/view_spec.feature +206 -0
  46. data/lib/autotest/rails_rspec2.rb +81 -76
  47. data/lib/generators/rspec/install/templates/spec/spec_helper.rb.tt +1 -6
  48. data/lib/rspec/rails/adapters.rb +5 -12
  49. data/lib/rspec/rails/example/controller_example_group.rb +1 -2
  50. data/lib/rspec/rails/example/helper_example_group.rb +3 -3
  51. data/lib/rspec/rails/example/view_example_group.rb +4 -7
  52. data/lib/rspec/rails/matchers/have_extension.rb +0 -1
  53. data/lib/rspec/rails/matchers/routing_matchers.rb +0 -4
  54. data/lib/rspec/rails/mocks.rb +0 -26
  55. data/lib/rspec/rails/tasks/rspec.rake +5 -12
  56. data/lib/rspec/rails/version.rb +1 -1
  57. data/spec/autotest/rails_rspec2_spec.rb +36 -0
  58. data/spec/generators/rspec/controller/controller_generator_spec.rb +97 -0
  59. data/spec/generators/rspec/helper/helper_generator_spec.rb +30 -0
  60. data/spec/generators/rspec/install/install_generator_spec.rb +30 -0
  61. data/spec/generators/rspec/integration/integration_generator_spec.rb +44 -0
  62. data/spec/generators/rspec/mailer/mailer_generator_spec.rb +48 -0
  63. data/spec/generators/rspec/model/model_generator_spec.rb +52 -0
  64. data/spec/generators/rspec/observer/observer_generator_spec.rb +21 -0
  65. data/spec/generators/rspec/scaffold/scaffold_generator_spec.rb +138 -0
  66. data/spec/generators/rspec/view/view_generator_spec.rb +41 -0
  67. data/spec/rspec/rails/assertion_adapter_spec.rb +28 -0
  68. data/spec/rspec/rails/assertion_delegator_spec.rb +43 -0
  69. data/spec/rspec/rails/configuration_spec.rb +26 -0
  70. data/spec/rspec/rails/deprecations_spec.rb +18 -0
  71. data/spec/rspec/rails/example/controller_example_group_spec.rb +100 -0
  72. data/spec/rspec/rails/example/feature_example_group_spec.rb +56 -0
  73. data/spec/rspec/rails/example/helper_example_group_spec.rb +66 -0
  74. data/spec/rspec/rails/example/mailer_example_group_spec.rb +21 -0
  75. data/spec/rspec/rails/example/model_example_group_spec.rb +15 -0
  76. data/spec/rspec/rails/example/request_example_group_spec.rb +17 -0
  77. data/spec/rspec/rails/example/routing_example_group_spec.rb +32 -0
  78. data/spec/rspec/rails/example/view_example_group_spec.rb +220 -0
  79. data/spec/rspec/rails/extensions/active_model/errors_on_spec.rb +23 -0
  80. data/spec/rspec/rails/extensions/active_record/base_spec.rb +42 -0
  81. data/spec/rspec/rails/fixture_support_spec.rb +17 -0
  82. data/spec/rspec/rails/matchers/be_a_new_spec.rb +142 -0
  83. data/spec/rspec/rails/matchers/be_new_record_spec.rb +33 -0
  84. data/spec/rspec/rails/matchers/be_routable_spec.rb +41 -0
  85. data/spec/rspec/rails/matchers/be_valid_spec.rb +44 -0
  86. data/spec/rspec/rails/matchers/errors_on_spec.rb +38 -0
  87. data/spec/rspec/rails/matchers/has_spec.rb +29 -0
  88. data/spec/rspec/rails/matchers/have_rendered_spec.rb +93 -0
  89. data/spec/rspec/rails/matchers/redirect_to_spec.rb +80 -0
  90. data/spec/rspec/rails/matchers/relation_match_array_spec.rb +31 -0
  91. data/spec/rspec/rails/matchers/route_to_spec.rb +151 -0
  92. data/spec/rspec/rails/minitest_lifecycle_adapter_spec.rb +22 -0
  93. data/spec/rspec/rails/mocks/mock_model_spec.rb +378 -0
  94. data/spec/rspec/rails/mocks/stub_model_spec.rb +154 -0
  95. data/spec/rspec/rails/setup_and_teardown_adapter_spec.rb +32 -0
  96. data/spec/rspec/rails/view_rendering_spec.rb +111 -0
  97. data/spec/spec_helper.rb +31 -0
  98. data/spec/support/ar_classes.rb +42 -0
  99. data/spec/support/helpers.rb +20 -0
  100. data/spec/support/matchers.rb +9 -0
  101. data/spec/support/null_object.rb +6 -0
  102. metadata +223 -47
@@ -0,0 +1,154 @@
1
+ require 'spec_helper'
2
+
3
+ describe "stub_model" do
4
+
5
+ shared_examples_for "stub model" do
6
+ describe "with a block" do
7
+ it "yields the model" do
8
+ model = stub_model(model_class) do |block_arg|
9
+ @block_arg = block_arg
10
+ end
11
+ model.should be(@block_arg)
12
+ end
13
+ end
14
+
15
+ describe "#persisted?" do
16
+ context "default" do
17
+ it "returns true" do
18
+ model = stub_model(model_class)
19
+ model.should be_persisted
20
+ end
21
+ end
22
+
23
+ context "with as_new_record" do
24
+ it "returns false" do
25
+ model = stub_model(model_class).as_new_record
26
+ model.should_not be_persisted
27
+ end
28
+ end
29
+ end
30
+
31
+ it "increments the value returned by to_param" do
32
+ first = stub_model(model_class)
33
+ second = stub_model(model_class)
34
+ second.to_param.to_i.should == (first.to_param.to_i + 1)
35
+ end
36
+
37
+ describe "#blank?" do
38
+ it "is false" do
39
+ stub_model(model_class).should_not be_blank
40
+ end
41
+ end
42
+ end
43
+
44
+ context "with ActiveModel (not ActiveRecord)" do
45
+ it_behaves_like "stub model" do
46
+ def model_class
47
+ NonActiveRecordModel
48
+ end
49
+ end
50
+ end
51
+
52
+ context "with an ActiveRecord model" do
53
+ let(:model_class) { MockableModel }
54
+
55
+ it_behaves_like "stub model"
56
+
57
+ describe "#new_record?" do
58
+ context "default" do
59
+ it "returns false" do
60
+ model = stub_model(model_class)
61
+ model.new_record?.should be_falsey
62
+ end
63
+ end
64
+
65
+ context "with as_new_record" do
66
+ it "returns true" do
67
+ model = stub_model(model_class).as_new_record
68
+ model.new_record?.should be_truthy
69
+ end
70
+ end
71
+ end
72
+
73
+ describe "defaults" do
74
+ it "has an id" do
75
+ stub_model(MockableModel).id.should be > 0
76
+ end
77
+
78
+ it "says it is not a new record" do
79
+ stub_model(MockableModel).should_not be_new_record
80
+ end
81
+ end
82
+
83
+ describe "#as_new_record" do
84
+ it "has a nil id" do
85
+ stub_model(MockableModel).as_new_record.id.should be(nil)
86
+ end
87
+ end
88
+
89
+ it "raises when hitting the db" do
90
+ lambda do
91
+ stub_model(MockableModel).connection
92
+ end.should raise_error(RSpec::Rails::IllegalDataAccessException, /stubbed models are not allowed to access the database/)
93
+ end
94
+
95
+ it "increments the id" do
96
+ first = stub_model(model_class)
97
+ second = stub_model(model_class)
98
+ second.id.should == (first.id + 1)
99
+ end
100
+
101
+ it "accepts a stub id" do
102
+ stub_model(MockableModel, :id => 37).id.should == 37
103
+ end
104
+
105
+ it "says it is a new record when id is set to nil" do
106
+ stub_model(MockableModel, :id => nil).should be_new_record
107
+ end
108
+
109
+ it "accepts a stub for save" do
110
+ stub_model(MockableModel, :save => false).save.should be(false)
111
+ end
112
+
113
+ describe "alternate primary key" do
114
+ it "has the correct primary_key name" do
115
+ stub_model(AlternatePrimaryKeyModel).class.primary_key.to_s.should eq('my_id')
116
+ end
117
+
118
+ it "has a primary_key" do
119
+ stub_model(AlternatePrimaryKeyModel).my_id.should be > 0
120
+ end
121
+
122
+ it "says it is not a new record" do
123
+ stub_model(AlternatePrimaryKeyModel) do |m|
124
+ m.should_not be_new_record
125
+ end
126
+ end
127
+
128
+ it "says it is a new record if primary_key is nil" do
129
+ stub_model(AlternatePrimaryKeyModel, :my_id => nil).should be_new_record
130
+ end
131
+
132
+ it "accepts a stub for the primary_key" do
133
+ stub_model(AlternatePrimaryKeyModel, :my_id => 5).my_id.should == 5
134
+ end
135
+ end
136
+
137
+ describe "as association" do
138
+ before(:each) do
139
+ @real = AssociatedModel.create!
140
+ @stub_model = stub_model(MockableModel)
141
+ @real.mockable_model = @stub_model
142
+ end
143
+
144
+ it "passes associated_model == mock" do
145
+ @stub_model.should == @real.mockable_model
146
+ end
147
+
148
+ it "passes mock == associated_model" do
149
+ @real.mockable_model.should == @stub_model
150
+ end
151
+ end
152
+
153
+ end
154
+ end
@@ -0,0 +1,32 @@
1
+ require 'spec_helper'
2
+
3
+ describe RSpec::Rails::SetupAndTeardownAdapter do
4
+ describe "::setup" do
5
+ it "registers before hooks in the order setup is received" do
6
+ klass = Class.new do
7
+ include RSpec::Rails::SetupAndTeardownAdapter
8
+ def self.foo; "foo"; end
9
+ def self.bar; "bar"; end
10
+ end
11
+ klass.should_receive(:before).ordered { |&block| block.call.should eq "foo" }
12
+ klass.should_receive(:before).ordered { |&block| block.call.should eq "bar" }
13
+
14
+ klass.setup :foo
15
+ klass.setup :bar
16
+ end
17
+
18
+ it "registers prepend_before hooks for the Rails' setup methods" do
19
+ klass = Class.new do
20
+ include RSpec::Rails::SetupAndTeardownAdapter
21
+ def self.setup_fixtures; "setup fixtures" end
22
+ def self.setup_controller_request_and_response; "setup controller" end
23
+ end
24
+
25
+ klass.should_receive(:prepend_before) { |&block| block.call.should eq "setup fixtures" }
26
+ klass.should_receive(:prepend_before) { |&block| block.call.should eq "setup controller" }
27
+
28
+ klass.setup :setup_fixtures
29
+ klass.setup :setup_controller_request_and_response
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,111 @@
1
+ require "spec_helper"
2
+
3
+ module RSpec::Rails
4
+ describe ViewRendering do
5
+ let(:group) do
6
+ RSpec::Core::ExampleGroup.describe do
7
+ def controller
8
+ ActionController::Base.new
9
+ end
10
+ include ViewRendering
11
+ end
12
+ end
13
+
14
+ context "default" do
15
+ context "ActionController::Base" do
16
+ it "does not render views" do
17
+ group.new.render_views?.should be_falsey
18
+ end
19
+
20
+ it "does not render views in a nested group" do
21
+ group.describe{}.new.render_views?.should be_falsey
22
+ end
23
+ end
24
+
25
+ context "ActionController::Metal" do
26
+ it "renders views" do
27
+ group.new.tap do |example|
28
+ def example.controller
29
+ ActionController::Metal.new
30
+ end
31
+ example.render_views?.should be_truthy
32
+ end
33
+ end
34
+ end
35
+ end
36
+
37
+ describe "#render_views" do
38
+ context "with no args" do
39
+ it "tells examples to render views" do
40
+ group.render_views
41
+ group.new.render_views?.should be_truthy
42
+ end
43
+ end
44
+
45
+ context "with true" do
46
+ it "tells examples to render views" do
47
+ group.render_views true
48
+ group.new.render_views?.should be_truthy
49
+ end
50
+ end
51
+
52
+ context "with false" do
53
+ it "tells examples not to render views" do
54
+ group.render_views false
55
+ group.new.render_views?.should be_falsey
56
+ end
57
+
58
+ it "overrides the global config if render_views is enabled there" do
59
+ RSpec.configuration.stub(:render_views?).and_return true
60
+ group.render_views false
61
+ group.new.render_views?.should be_falsey
62
+ end
63
+ end
64
+
65
+ context "in a nested group" do
66
+ let(:nested_group) do
67
+ group.describe{}
68
+ end
69
+
70
+ context "with no args" do
71
+ it "tells examples to render views" do
72
+ nested_group.render_views
73
+ nested_group.new.render_views?.should be_truthy
74
+ end
75
+ end
76
+
77
+ context "with true" do
78
+ it "tells examples to render views" do
79
+ nested_group.render_views true
80
+ nested_group.new.render_views?.should be_truthy
81
+ end
82
+ end
83
+
84
+ context "with false" do
85
+ it "tells examples not to render views" do
86
+ nested_group.render_views false
87
+ nested_group.new.render_views?.should be_falsey
88
+ end
89
+ end
90
+
91
+ it "leaves the parent group as/is" do
92
+ group.render_views
93
+ nested_group.render_views false
94
+ group.new.render_views?.should be_truthy
95
+ end
96
+
97
+ it "overrides the value inherited from the parent group" do
98
+ group.render_views
99
+ nested_group.render_views false
100
+ nested_group.new.render_views?.should be_falsey
101
+ end
102
+
103
+ it "passes override to children" do
104
+ group.render_views
105
+ nested_group.render_views false
106
+ nested_group.describe{}.new.render_views?.should be_falsey
107
+ end
108
+ end
109
+ end
110
+ end
111
+ end
@@ -0,0 +1,31 @@
1
+ require 'rails/all'
2
+
3
+ module RSpecRails
4
+ class Application < ::Rails::Application
5
+ end
6
+ end
7
+
8
+ require 'rspec/rails'
9
+ require 'ammeter/init'
10
+
11
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
12
+
13
+ class RSpec::Core::ExampleGroup
14
+ def self.run_all(reporter=nil)
15
+ run(reporter || RSpec::Mocks::Mock.new('reporter').as_null_object)
16
+ end
17
+ end
18
+
19
+ RSpec.configure do |config|
20
+ config.treat_symbols_as_metadata_keys_with_true_values = true
21
+ config.filter_run :focus
22
+ config.run_all_when_everything_filtered = true
23
+ config.before(:each) do
24
+ @real_world = RSpec.world
25
+ RSpec.instance_variable_set(:@world, RSpec::Core::World.new)
26
+ end
27
+ config.after(:each) do
28
+ RSpec.instance_variable_set(:@world, @real_world)
29
+ end
30
+ config.order = :random
31
+ end
@@ -0,0 +1,42 @@
1
+ ActiveRecord::Base.establish_connection(
2
+ :adapter => 'sqlite3',
3
+ :database => ':memory:'
4
+ )
5
+
6
+ module Connections
7
+ def self.extended(host)
8
+ host.connection.execute <<-eosql
9
+ CREATE TABLE #{host.table_name} (
10
+ #{host.primary_key} integer PRIMARY KEY AUTOINCREMENT,
11
+ associated_model_id integer,
12
+ mockable_model_id integer,
13
+ nonexistent_model_id integer
14
+ )
15
+ eosql
16
+ end
17
+ end
18
+
19
+ class NonActiveRecordModel
20
+ extend ActiveModel::Naming
21
+ include ActiveModel::Conversion
22
+ end
23
+
24
+ class MockableModel < ActiveRecord::Base
25
+ extend Connections
26
+ has_one :associated_model
27
+ end
28
+
29
+ class SubMockableModel < MockableModel
30
+ end
31
+
32
+ class AssociatedModel < ActiveRecord::Base
33
+ extend Connections
34
+ belongs_to :mockable_model
35
+ belongs_to :nonexistent_model, :class_name => "Other"
36
+ end
37
+
38
+ class AlternatePrimaryKeyModel < ActiveRecord::Base
39
+ self.primary_key = :my_id
40
+ extend Connections
41
+ attr_accessor :my_id
42
+ end
@@ -0,0 +1,20 @@
1
+ module Helpers
2
+ def stub_metadata(additional_metadata)
3
+ stub_metadata = metadata_with(additional_metadata)
4
+ RSpec::Core::ExampleGroup.stub(:metadata) { stub_metadata }
5
+ end
6
+
7
+ def metadata_with(additional_metadata)
8
+ m = RSpec::Core::Metadata.new
9
+ m.process("example group")
10
+
11
+ group_metadata = additional_metadata.delete(:example_group)
12
+ if group_metadata
13
+ m[:example_group].merge!(group_metadata)
14
+ end
15
+ m.merge!(additional_metadata)
16
+ m
17
+ end
18
+
19
+ RSpec.configure {|c| c.include self}
20
+ end
@@ -0,0 +1,9 @@
1
+ RSpec::Matchers::define :be_included_in_files_in do |path|
2
+ match do |mod|
3
+ stub_metadata(
4
+ :example_group => {:file_path => "#{path}whatever_spec.rb:15"}
5
+ )
6
+ group = RSpec::Core::ExampleGroup.describe
7
+ group.included_modules.include?(mod)
8
+ end
9
+ end
@@ -0,0 +1,6 @@
1
+ class NullObject
2
+ private
3
+
4
+ def method_missing(method, *args, &blk)
5
+ end
6
+ end
metadata CHANGED
@@ -1,169 +1,169 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.2
4
+ version: 2.99.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-23 00:00:00.000000000 Z
11
+ date: 2013-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activemodel
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: actionpack
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: railties
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-core
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 2.14.0
75
+ version: 2.99.0.beta1
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 2.14.0
82
+ version: 2.99.0.beta1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec-expectations
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 2.14.0
89
+ version: 2.99.0.beta1
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 2.14.0
96
+ version: 2.99.0.beta1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec-mocks
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 2.14.0
103
+ version: 2.99.0.beta1
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 2.14.0
110
+ version: 2.99.0.beta1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ~>
116
116
  - !ruby/object:Gem::Version
117
117
  version: 10.0.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ~>
123
123
  - !ruby/object:Gem::Version
124
124
  version: 10.0.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: cucumber
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ~>
130
130
  - !ruby/object:Gem::Version
131
131
  version: 1.3.5
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ~>
137
137
  - !ruby/object:Gem::Version
138
138
  version: 1.3.5
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: aruba
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ~>
144
144
  - !ruby/object:Gem::Version
145
145
  version: 0.4.11
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ~>
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.4.11
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: ZenTest
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - '='
158
158
  - !ruby/object:Gem::Version
159
- version: 4.9.5
159
+ version: 4.9.0
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - "~>"
164
+ - - '='
165
165
  - !ruby/object:Gem::Version
166
- version: 4.9.5
166
+ version: 4.9.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: ammeter
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -182,14 +182,14 @@ dependencies:
182
182
  name: capybara
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ">="
185
+ - - ! '>='
186
186
  - !ruby/object:Gem::Version
187
187
  version: 2.0.0
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - ">="
192
+ - - ! '>='
193
193
  - !ruby/object:Gem::Version
194
194
  version: 2.0.0
195
195
  description: RSpec for Rails
@@ -198,12 +198,6 @@ executables: []
198
198
  extensions: []
199
199
  extra_rdoc_files: []
200
200
  files:
201
- - ".document"
202
- - ".yardopts"
203
- - Capybara.md
204
- - Changelog.md
205
- - License.txt
206
- - README.md
207
201
  - lib/autotest/rails_rspec2.rb
208
202
  - lib/generators/rspec.rb
209
203
  - lib/generators/rspec/controller/controller_generator.rb
@@ -267,30 +261,212 @@ files:
267
261
  - lib/rspec/rails/version.rb
268
262
  - lib/rspec/rails/view_assigns.rb
269
263
  - lib/rspec/rails/view_rendering.rb
264
+ - README.md
265
+ - License.txt
266
+ - Changelog.md
267
+ - Capybara.md
268
+ - .yardopts
269
+ - .document
270
+ - features/Autotest.md
271
+ - features/Generators.md
272
+ - features/GettingStarted.md
273
+ - features/README.md
274
+ - features/RailsVersions.md
275
+ - features/Transactions.md
276
+ - features/Upgrade.md
277
+ - features/controller_specs/Cookies.md
278
+ - features/controller_specs/README.md
279
+ - features/controller_specs/anonymous_controller.feature
280
+ - features/controller_specs/bypass_rescue.feature
281
+ - features/controller_specs/controller_spec.feature
282
+ - features/controller_specs/engine_routes.feature
283
+ - features/controller_specs/isolation_from_views.feature
284
+ - features/controller_specs/render_views.feature
285
+ - features/feature_specs/feature_spec.feature
286
+ - features/helper_specs/helper_spec.feature
287
+ - features/mailer_specs/url_helpers.feature
288
+ - features/matchers/README.md
289
+ - features/matchers/new_record_matcher.feature
290
+ - features/matchers/redirect_to_matcher.feature
291
+ - features/matchers/relation_match_array.feature
292
+ - features/matchers/render_template_matcher.feature
293
+ - features/mocks/mock_model.feature
294
+ - features/mocks/stub_model.feature
295
+ - features/model_specs/README.md
296
+ - features/model_specs/errors_on.feature
297
+ - features/model_specs/records.feature
298
+ - features/model_specs/transactional_examples.feature
299
+ - features/request_specs/request_spec.feature
300
+ - features/routing_specs/README.md
301
+ - features/routing_specs/be_routable_matcher.feature
302
+ - features/routing_specs/engine_routes.feature
303
+ - features/routing_specs/named_routes.feature
304
+ - features/routing_specs/route_to_matcher.feature
305
+ - features/step_definitions/additional_cli_steps.rb
306
+ - features/step_definitions/model_steps.rb
307
+ - features/support/env.rb
308
+ - features/support/rails_versions.rb
309
+ - features/support/rubinius.rb
310
+ - features/view_specs/inferred_controller_path.feature
311
+ - features/view_specs/stub_template.feature
312
+ - features/view_specs/view_spec.feature
313
+ - spec/autotest/rails_rspec2_spec.rb
314
+ - spec/generators/rspec/controller/controller_generator_spec.rb
315
+ - spec/generators/rspec/helper/helper_generator_spec.rb
316
+ - spec/generators/rspec/install/install_generator_spec.rb
317
+ - spec/generators/rspec/integration/integration_generator_spec.rb
318
+ - spec/generators/rspec/mailer/mailer_generator_spec.rb
319
+ - spec/generators/rspec/model/model_generator_spec.rb
320
+ - spec/generators/rspec/observer/observer_generator_spec.rb
321
+ - spec/generators/rspec/scaffold/scaffold_generator_spec.rb
322
+ - spec/generators/rspec/view/view_generator_spec.rb
323
+ - spec/rspec/rails/assertion_adapter_spec.rb
324
+ - spec/rspec/rails/assertion_delegator_spec.rb
325
+ - spec/rspec/rails/configuration_spec.rb
326
+ - spec/rspec/rails/deprecations_spec.rb
327
+ - spec/rspec/rails/example/controller_example_group_spec.rb
328
+ - spec/rspec/rails/example/feature_example_group_spec.rb
329
+ - spec/rspec/rails/example/helper_example_group_spec.rb
330
+ - spec/rspec/rails/example/mailer_example_group_spec.rb
331
+ - spec/rspec/rails/example/model_example_group_spec.rb
332
+ - spec/rspec/rails/example/request_example_group_spec.rb
333
+ - spec/rspec/rails/example/routing_example_group_spec.rb
334
+ - spec/rspec/rails/example/view_example_group_spec.rb
335
+ - spec/rspec/rails/extensions/active_model/errors_on_spec.rb
336
+ - spec/rspec/rails/extensions/active_record/base_spec.rb
337
+ - spec/rspec/rails/fixture_support_spec.rb
338
+ - spec/rspec/rails/matchers/be_a_new_spec.rb
339
+ - spec/rspec/rails/matchers/be_new_record_spec.rb
340
+ - spec/rspec/rails/matchers/be_routable_spec.rb
341
+ - spec/rspec/rails/matchers/be_valid_spec.rb
342
+ - spec/rspec/rails/matchers/errors_on_spec.rb
343
+ - spec/rspec/rails/matchers/has_spec.rb
344
+ - spec/rspec/rails/matchers/have_rendered_spec.rb
345
+ - spec/rspec/rails/matchers/redirect_to_spec.rb
346
+ - spec/rspec/rails/matchers/relation_match_array_spec.rb
347
+ - spec/rspec/rails/matchers/route_to_spec.rb
348
+ - spec/rspec/rails/minitest_lifecycle_adapter_spec.rb
349
+ - spec/rspec/rails/mocks/mock_model_spec.rb
350
+ - spec/rspec/rails/mocks/stub_model_spec.rb
351
+ - spec/rspec/rails/setup_and_teardown_adapter_spec.rb
352
+ - spec/rspec/rails/view_rendering_spec.rb
353
+ - spec/spec_helper.rb
354
+ - spec/support/ar_classes.rb
355
+ - spec/support/helpers.rb
356
+ - spec/support/matchers.rb
357
+ - spec/support/null_object.rb
270
358
  homepage: http://github.com/rspec/rspec-rails
271
359
  licenses:
272
360
  - MIT
273
361
  metadata: {}
274
362
  post_install_message:
275
363
  rdoc_options:
276
- - "--charset=UTF-8"
364
+ - --charset=UTF-8
277
365
  require_paths:
278
366
  - lib
279
367
  required_ruby_version: !ruby/object:Gem::Requirement
280
368
  requirements:
281
- - - ">="
369
+ - - ! '>='
282
370
  - !ruby/object:Gem::Version
283
371
  version: '0'
284
372
  required_rubygems_version: !ruby/object:Gem::Requirement
285
373
  requirements:
286
- - - ">="
374
+ - - ! '>'
287
375
  - !ruby/object:Gem::Version
288
- version: '0'
376
+ version: 1.3.1
289
377
  requirements: []
290
378
  rubyforge_project: rspec
291
- rubygems_version: 2.2.0
379
+ rubygems_version: 2.0.7
292
380
  signing_key:
293
381
  specification_version: 4
294
- summary: rspec-rails-2.14.2
295
- test_files: []
382
+ summary: rspec-rails-2.99.0.beta1
383
+ test_files:
384
+ - features/Autotest.md
385
+ - features/Generators.md
386
+ - features/GettingStarted.md
387
+ - features/README.md
388
+ - features/RailsVersions.md
389
+ - features/Transactions.md
390
+ - features/Upgrade.md
391
+ - features/controller_specs/Cookies.md
392
+ - features/controller_specs/README.md
393
+ - features/controller_specs/anonymous_controller.feature
394
+ - features/controller_specs/bypass_rescue.feature
395
+ - features/controller_specs/controller_spec.feature
396
+ - features/controller_specs/engine_routes.feature
397
+ - features/controller_specs/isolation_from_views.feature
398
+ - features/controller_specs/render_views.feature
399
+ - features/feature_specs/feature_spec.feature
400
+ - features/helper_specs/helper_spec.feature
401
+ - features/mailer_specs/url_helpers.feature
402
+ - features/matchers/README.md
403
+ - features/matchers/new_record_matcher.feature
404
+ - features/matchers/redirect_to_matcher.feature
405
+ - features/matchers/relation_match_array.feature
406
+ - features/matchers/render_template_matcher.feature
407
+ - features/mocks/mock_model.feature
408
+ - features/mocks/stub_model.feature
409
+ - features/model_specs/README.md
410
+ - features/model_specs/errors_on.feature
411
+ - features/model_specs/records.feature
412
+ - features/model_specs/transactional_examples.feature
413
+ - features/request_specs/request_spec.feature
414
+ - features/routing_specs/README.md
415
+ - features/routing_specs/be_routable_matcher.feature
416
+ - features/routing_specs/engine_routes.feature
417
+ - features/routing_specs/named_routes.feature
418
+ - features/routing_specs/route_to_matcher.feature
419
+ - features/step_definitions/additional_cli_steps.rb
420
+ - features/step_definitions/model_steps.rb
421
+ - features/support/env.rb
422
+ - features/support/rails_versions.rb
423
+ - features/support/rubinius.rb
424
+ - features/view_specs/inferred_controller_path.feature
425
+ - features/view_specs/stub_template.feature
426
+ - features/view_specs/view_spec.feature
427
+ - spec/autotest/rails_rspec2_spec.rb
428
+ - spec/generators/rspec/controller/controller_generator_spec.rb
429
+ - spec/generators/rspec/helper/helper_generator_spec.rb
430
+ - spec/generators/rspec/install/install_generator_spec.rb
431
+ - spec/generators/rspec/integration/integration_generator_spec.rb
432
+ - spec/generators/rspec/mailer/mailer_generator_spec.rb
433
+ - spec/generators/rspec/model/model_generator_spec.rb
434
+ - spec/generators/rspec/observer/observer_generator_spec.rb
435
+ - spec/generators/rspec/scaffold/scaffold_generator_spec.rb
436
+ - spec/generators/rspec/view/view_generator_spec.rb
437
+ - spec/rspec/rails/assertion_adapter_spec.rb
438
+ - spec/rspec/rails/assertion_delegator_spec.rb
439
+ - spec/rspec/rails/configuration_spec.rb
440
+ - spec/rspec/rails/deprecations_spec.rb
441
+ - spec/rspec/rails/example/controller_example_group_spec.rb
442
+ - spec/rspec/rails/example/feature_example_group_spec.rb
443
+ - spec/rspec/rails/example/helper_example_group_spec.rb
444
+ - spec/rspec/rails/example/mailer_example_group_spec.rb
445
+ - spec/rspec/rails/example/model_example_group_spec.rb
446
+ - spec/rspec/rails/example/request_example_group_spec.rb
447
+ - spec/rspec/rails/example/routing_example_group_spec.rb
448
+ - spec/rspec/rails/example/view_example_group_spec.rb
449
+ - spec/rspec/rails/extensions/active_model/errors_on_spec.rb
450
+ - spec/rspec/rails/extensions/active_record/base_spec.rb
451
+ - spec/rspec/rails/fixture_support_spec.rb
452
+ - spec/rspec/rails/matchers/be_a_new_spec.rb
453
+ - spec/rspec/rails/matchers/be_new_record_spec.rb
454
+ - spec/rspec/rails/matchers/be_routable_spec.rb
455
+ - spec/rspec/rails/matchers/be_valid_spec.rb
456
+ - spec/rspec/rails/matchers/errors_on_spec.rb
457
+ - spec/rspec/rails/matchers/has_spec.rb
458
+ - spec/rspec/rails/matchers/have_rendered_spec.rb
459
+ - spec/rspec/rails/matchers/redirect_to_spec.rb
460
+ - spec/rspec/rails/matchers/relation_match_array_spec.rb
461
+ - spec/rspec/rails/matchers/route_to_spec.rb
462
+ - spec/rspec/rails/minitest_lifecycle_adapter_spec.rb
463
+ - spec/rspec/rails/mocks/mock_model_spec.rb
464
+ - spec/rspec/rails/mocks/stub_model_spec.rb
465
+ - spec/rspec/rails/setup_and_teardown_adapter_spec.rb
466
+ - spec/rspec/rails/view_rendering_spec.rb
467
+ - spec/spec_helper.rb
468
+ - spec/support/ar_classes.rb
469
+ - spec/support/helpers.rb
470
+ - spec/support/matchers.rb
471
+ - spec/support/null_object.rb
296
472
  has_rdoc: