dchelimsky-rspec-rails 1.1.12 → 1.1.99.1

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.
Files changed (58) hide show
  1. data/History.txt +29 -2
  2. data/License.txt +1 -1
  3. data/Manifest.txt +7 -6
  4. data/README.txt +5 -4
  5. data/Rakefile +14 -2
  6. data/TODO.txt +1 -0
  7. data/Upgrade.txt +30 -0
  8. data/generators/rspec/templates/rspec.rake +12 -10
  9. data/generators/rspec/templates/script/spec_server +10 -111
  10. data/generators/rspec_controller/rspec_controller_generator.rb +1 -5
  11. data/generators/rspec_scaffold/rspec_scaffold_generator.rb +9 -13
  12. data/generators/rspec_scaffold/templates/controller_spec.rb +25 -25
  13. data/generators/rspec_scaffold/templates/edit_erb_spec.rb +1 -1
  14. data/generators/rspec_scaffold/templates/helper_spec.rb +1 -1
  15. data/generators/rspec_scaffold/templates/index_erb_spec.rb +1 -1
  16. data/generators/rspec_scaffold/templates/new_erb_spec.rb +1 -1
  17. data/generators/rspec_scaffold/templates/routing_spec.rb +24 -20
  18. data/generators/rspec_scaffold/templates/show_erb_spec.rb +1 -1
  19. data/lib/spec/rails/example/controller_example_group.rb +46 -16
  20. data/lib/spec/rails/example/functional_example_group.rb +7 -22
  21. data/lib/spec/rails/example/helper_example_group.rb +6 -9
  22. data/lib/spec/rails/example/model_example_group.rb +1 -1
  23. data/lib/spec/rails/example/render_observer.rb +0 -26
  24. data/lib/spec/rails/example/view_example_group.rb +32 -34
  25. data/lib/spec/rails/example.rb +0 -2
  26. data/lib/spec/rails/extensions/active_support/test_case.rb +7 -0
  27. data/lib/spec/rails/extensions/spec/runner/configuration.rb +12 -44
  28. data/lib/spec/rails/extensions.rb +1 -1
  29. data/lib/spec/rails/matchers/ar_be_valid.rb +3 -0
  30. data/lib/spec/rails/matchers/have_text.rb +1 -1
  31. data/lib/spec/rails/matchers/include_text.rb +2 -2
  32. data/lib/spec/rails/matchers/redirect_to.rb +6 -14
  33. data/lib/spec/rails/matchers/render_template.rb +5 -1
  34. data/lib/spec/rails/spec_server.rb +86 -0
  35. data/lib/spec/rails/version.rb +2 -2
  36. data/lib/spec/rails.rb +10 -9
  37. data/rspec-rails.gemspec +12 -9
  38. data/spec/resources/controllers/controller_spec_controller.rb +1 -1
  39. data/spec/resources/controllers/render_spec_controller.rb +1 -1
  40. data/spec/resources/controllers/rjs_spec_controller.rb +1 -1
  41. data/spec/spec/rails/example/configuration_spec.rb +15 -29
  42. data/spec/spec/rails/example/{controller_spec_spec.rb → controller_example_group_spec.rb} +84 -60
  43. data/spec/spec/rails/example/cookies_proxy_spec.rb +32 -36
  44. data/spec/spec/rails/example/example_group_factory_spec.rb +5 -5
  45. data/spec/spec/rails/example/{helper_spec_spec.rb → helper_example_group_spec.rb} +8 -2
  46. data/spec/spec/rails/example/{model_spec_spec.rb → model_example_group_spec.rb} +3 -1
  47. data/spec/spec/rails/example/{view_spec_spec.rb → view_example_group_spec.rb} +33 -15
  48. data/spec/spec/rails/matchers/ar_be_valid_spec.rb +10 -0
  49. data/spec/spec/rails/matchers/assert_select_spec.rb +1 -0
  50. data/spec/spec/rails/matchers/have_text_spec.rb +12 -4
  51. data/spec/spec/rails/matchers/include_text_spec.rb +11 -13
  52. data/spec/spec/rails/matchers/redirect_to_spec.rb +221 -210
  53. data/spec/spec/rails/matchers/render_template_spec.rb +161 -158
  54. data/spec/spec/rails/spec_server_spec.rb +18 -7
  55. data/spec/spec_helper.rb +20 -9
  56. metadata +21 -10
  57. data/lib/spec/rails/example/rails_example_group.rb +0 -28
  58. data/lib/spec/rails/extensions/action_controller/base.rb +0 -14
@@ -1,180 +1,183 @@
1
1
  require File.dirname(__FILE__) + '/../../../spec_helper'
2
2
 
3
- ['isolation','integration'].each do |mode|
4
- describe "response.should render_template (in #{mode} mode)",
5
- :type => :controller do
6
- controller_name :render_spec
7
- if mode == 'integration'
8
- integrate_views
9
- end
3
+ [:response, :controller].each do |subject_method|
4
+ ['isolation','integration'].each do |mode|
5
+ describe "#{subject_method}.should render_template (in #{mode} mode)",
6
+ :type => :controller do
7
+ controller_name :render_spec
8
+ if mode == 'integration'
9
+ integrate_views
10
+ end
10
11
 
11
- it "should match a simple path" do
12
- post 'some_action'
13
- response.should render_template('some_action')
14
- end
12
+ subject { send(subject_method) }
15
13
 
16
- it "should match a less simple path" do
17
- post 'some_action'
18
- response.should render_template('render_spec/some_action')
19
- end
20
-
21
- it "should match a less simple path to another controller" do
22
- post 'action_which_renders_template_from_other_controller'
23
- response.should render_template('controller_spec/action_with_template')
24
- end
25
-
26
- it "should match a symbol" do
27
- post 'some_action'
28
- response.should render_template(:some_action)
29
- end
30
-
31
- it "should match an rjs template" do
32
- xhr :post, 'some_action'
33
- if Rails::VERSION::STRING < "2.0.0"
34
- response.should render_template('render_spec/some_action.rjs')
35
- else
36
- response.should render_template('render_spec/some_action')
14
+ it "should match a simple path" do
15
+ post 'some_action'
16
+ should render_template('some_action')
37
17
  end
38
- end
39
-
40
- it "should match a partial template (simple path)" do
41
- get 'action_with_partial'
42
- response.should render_template("_a_partial")
43
- end
44
-
45
- it "should match a partial template (complex path)" do
46
- get 'action_with_partial'
47
- response.should render_template("render_spec/_a_partial")
48
- end
49
-
50
- it "should fail when the wrong template is rendered" do
51
- post 'some_action'
52
- lambda do
53
- response.should render_template('non_existent_template')
54
- end.should fail_with(/expected \"non_existent_template\", got \"render_spec\/some_action(\.html\.erb)?\"/)
55
- end
56
-
57
- it "should fail without full path when template is associated with a different controller" do
58
- post 'action_which_renders_template_from_other_controller'
59
- lambda do
60
- response.should render_template('action_with_template')
61
- end.should fail_with(/expected \"action_with_template\", got \"controller_spec\/action_with_template(\.rhtml)?\"/)
62
- end
63
-
64
- it "should fail with incorrect full path when template is associated with a different controller" do
65
- post 'action_which_renders_template_from_other_controller'
66
- lambda do
67
- response.should render_template('render_spec/action_with_template')
68
- end.should fail_with(/expected \"render_spec\/action_with_template\", got \"controller_spec\/action_with_template(\.rhtml)?\"/)
69
- end
70
-
71
- it "should fail on the wrong extension (given rhtml)" do
72
- get 'some_action'
73
- lambda {
74
- response.should render_template('render_spec/some_action.rjs')
75
- }.should fail_with(/expected \"render_spec\/some_action\.rjs\", got \"render_spec\/some_action(\.html\.erb)?\"/)
76
- end
77
-
78
- it "should fail when TEXT is rendered" do
79
- post 'text_action'
80
- lambda do
81
- response.should render_template('some_action')
82
- end.should fail_with(/expected \"some_action\", got (nil|\"\")/)
83
- end
84
-
85
- describe "with an alternate layout" do
86
- it "should say it rendered the action's template" do
87
- get 'action_with_alternate_layout'
88
- response.should render_template('action_with_alternate_layout')
18
+
19
+ it "should match a less simple path" do
20
+ post 'some_action'
21
+ should render_template('render_spec/some_action')
89
22
  end
90
- end
91
-
92
- it "provides a description" do
93
- render_template("foo/bar").description.should == %q|render template "foo/bar"|
94
- end
95
- end
96
-
97
- describe "response.should_not render_template (in #{mode} mode)",
98
- :type => :controller do
99
- controller_name :render_spec
100
- if mode == 'integration'
101
- integrate_views
102
- end
103
-
104
- it "should pass when the action renders nothing" do
105
- post 'action_that_renders_nothing'
106
- response.should_not render_template('action_that_renders_nothing')
107
- end
108
23
 
109
- it "should pass when the action renders nothing (symbol)" do
110
- post 'action_that_renders_nothing'
111
- response.should_not render_template(:action_that_renders_nothing)
112
- end
24
+ it "should match a less simple path to another controller" do
25
+ post 'action_which_renders_template_from_other_controller'
26
+ should render_template('controller_spec/action_with_template')
27
+ end
113
28
 
114
- it "should pass when the action does not render the template" do
115
- post 'some_action'
116
- response.should_not render_template('some_other_template')
117
- end
29
+ it "should match a symbol" do
30
+ post 'some_action'
31
+ should render_template(:some_action)
32
+ end
118
33
 
119
- it "should pass when the action does not render the template (symbol)" do
120
- post 'some_action'
121
- response.should_not render_template(:some_other_template)
122
- end
34
+ it "should match an rjs template" do
35
+ xhr :post, 'some_action'
36
+ should render_template('render_spec/some_action')
37
+ end
123
38
 
124
- it "should pass when the action does not render the template (named with controller)" do
125
- post 'some_action'
126
- response.should_not render_template('render_spec/some_other_template')
127
- end
39
+ it "should match a partial template (simple path)" do
40
+ get 'action_with_partial'
41
+ should render_template("_a_partial")
42
+ end
128
43
 
129
- it "should pass when the action renders the template with a different controller" do
130
- post 'action_which_renders_template_from_other_controller'
131
- response.should_not render_template('action_with_template')
132
- end
44
+ it "should match a partial template (complex path)" do
45
+ get 'action_with_partial'
46
+ should render_template("render_spec/_a_partial")
47
+ end
133
48
 
134
- it "should pass when the action renders the template (named with controller) with a different controller" do
135
- post 'action_which_renders_template_from_other_controller'
136
- response.should_not render_template('render_spec/action_with_template')
137
- end
49
+ it "should fail when the wrong template is rendered" do
50
+ post 'some_action'
51
+ lambda do
52
+ should render_template('non_existent_template')
53
+ end.should fail_with(/expected \"non_existent_template\", got \"render_spec\/some_action(\.html\.erb)?\"/)
54
+ end
138
55
 
139
- it "should pass when TEXT is rendered" do
140
- post 'text_action'
141
- response.should_not render_template('some_action')
142
- end
56
+ it "should fail without full path when template is associated with a different controller" do
57
+ post 'action_which_renders_template_from_other_controller'
58
+ lambda do
59
+ should render_template('action_with_template')
60
+ end.should fail_with(/expected \"action_with_template\", got \"controller_spec\/action_with_template(\.rhtml)?\"/)
61
+ end
143
62
 
144
- it "should fail when the action renders the template" do
145
- post 'some_action'
146
- lambda do
147
- response.should_not render_template('some_action')
148
- end.should fail_with("expected not to render \"some_action\", but did")
149
- end
63
+ it "should fail with incorrect full path when template is associated with a different controller" do
64
+ post 'action_which_renders_template_from_other_controller'
65
+ lambda do
66
+ should render_template('render_spec/action_with_template')
67
+ end.should fail_with(/expected \"render_spec\/action_with_template\", got \"controller_spec\/action_with_template(\.rhtml)?\"/)
68
+ end
150
69
 
151
- it "should fail when the action renders the template (symbol)" do
152
- post 'some_action'
153
- lambda do
154
- response.should_not render_template(:some_action)
155
- end.should fail_with("expected not to render \"some_action\", but did")
156
- end
70
+ it "should fail on the wrong extension (given rhtml)" do
71
+ get 'some_action'
72
+ lambda {
73
+ should render_template('render_spec/some_action.rjs')
74
+ }.should fail_with(/expected \"render_spec\/some_action\.rjs\", got \"render_spec\/some_action(\.html\.erb)?\"/)
75
+ end
157
76
 
158
- it "should fail when the action renders the template (named with controller)" do
159
- post 'some_action'
160
- lambda do
161
- response.should_not render_template('render_spec/some_action')
162
- end.should fail_with("expected not to render \"render_spec/some_action\", but did")
163
- end
77
+ it "should fail when TEXT is rendered" do
78
+ post 'text_action'
79
+ lambda do
80
+ should render_template('some_action')
81
+ end.should fail_with(/expected \"some_action\", got (nil|\"\")/)
82
+ end
164
83
 
165
- it "should fail when the action renders the partial" do
166
- post 'action_with_partial'
167
- lambda do
168
- response.should_not render_template('_a_partial')
169
- end.should fail_with("expected not to render \"_a_partial\", but did")
84
+ describe "with an alternate layout" do
85
+ controller_name :render_spec
86
+ it "should say it rendered the action's template" do
87
+ get 'action_with_alternate_layout'
88
+ should render_template('action_with_alternate_layout')
89
+ end
90
+ end
91
+
92
+ it "provides a description" do
93
+ render_template("foo/bar").description.should == %q|render template "foo/bar"|
94
+ end
170
95
  end
171
96
 
172
- it "should fail when the action renders the partial (named with controller)" do
173
- post 'action_with_partial'
174
- lambda do
175
- response.should_not render_template('render_spec/_a_partial')
176
- end.should fail_with("expected not to render \"render_spec/_a_partial\", but did")
97
+ describe "#{subject_method}.should_not render_template (in #{mode} mode)",
98
+ :type => :controller do
99
+ controller_name :render_spec
100
+ if mode == 'integration'
101
+ integrate_views
102
+ end
103
+
104
+ subject { send(subject_method) }
105
+
106
+ it "should pass when the action renders nothing" do
107
+ post 'action_that_renders_nothing'
108
+ should_not render_template('action_that_renders_nothing')
109
+ end
110
+
111
+ it "should pass when the action renders nothing (symbol)" do
112
+ post 'action_that_renders_nothing'
113
+ should_not render_template(:action_that_renders_nothing)
114
+ end
115
+
116
+ it "should pass when the action does not render the template" do
117
+ post 'some_action'
118
+ should_not render_template('some_other_template')
119
+ end
120
+
121
+ it "should pass when the action does not render the template (symbol)" do
122
+ post 'some_action'
123
+ should_not render_template(:some_other_template)
124
+ end
125
+
126
+ it "should pass when the action does not render the template (named with controller)" do
127
+ post 'some_action'
128
+ should_not render_template('render_spec/some_other_template')
129
+ end
130
+
131
+ it "should pass when the action renders the template with a different controller" do
132
+ post 'action_which_renders_template_from_other_controller'
133
+ should_not render_template('action_with_template')
134
+ end
135
+
136
+ it "should pass when the action renders the template (named with controller) with a different controller" do
137
+ post 'action_which_renders_template_from_other_controller'
138
+ should_not render_template('render_spec/action_with_template')
139
+ end
140
+
141
+ it "should pass when TEXT is rendered" do
142
+ post 'text_action'
143
+ should_not render_template('some_action')
144
+ end
145
+
146
+ it "should fail when the action renders the template" do
147
+ post 'some_action'
148
+ lambda do
149
+ should_not render_template('some_action')
150
+ end.should fail_with("expected not to render \"some_action\", but did")
151
+ end
152
+
153
+ it "should fail when the action renders the template (symbol)" do
154
+ post 'some_action'
155
+ lambda do
156
+ should_not render_template(:some_action)
157
+ end.should fail_with("expected not to render \"some_action\", but did")
158
+ end
159
+
160
+ it "should fail when the action renders the template (named with controller)" do
161
+ post 'some_action'
162
+ lambda do
163
+ should_not render_template('render_spec/some_action')
164
+ end.should fail_with("expected not to render \"render_spec/some_action\", but did")
165
+ end
166
+
167
+ it "should fail when the action renders the partial" do
168
+ post 'action_with_partial'
169
+ lambda do
170
+ should_not render_template('_a_partial')
171
+ end.should fail_with("expected not to render \"_a_partial\", but did")
172
+ end
173
+
174
+ it "should fail when the action renders the partial (named with controller)" do
175
+ post 'action_with_partial'
176
+ lambda do
177
+ should_not render_template('render_spec/_a_partial')
178
+ end.should fail_with("expected not to render \"render_spec/_a_partial\", but did")
179
+ end
180
+
177
181
  end
178
-
179
182
  end
180
183
  end
@@ -1,7 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/../../spec_helper'
2
2
 
3
3
  describe "script/spec_server file", :shared => true do
4
- attr_accessor :tmbundle_install_directory
4
+ attr_accessor :tmbundle_install_directory, :tmbundle_source_directory
5
5
  attr_reader :animals_yml_path, :original_animals_content
6
6
 
7
7
  before do
@@ -22,7 +22,7 @@ describe "script/spec_server file", :shared => true do
22
22
  it "runs a spec" do
23
23
  dir = File.expand_path(File.dirname(__FILE__))
24
24
  output = ""
25
- Timeout.timeout(10) do
25
+ Timeout.timeout(20) do
26
26
  loop do
27
27
  output = `#{RAILS_ROOT}/script/spec #{dir}/sample_spec.rb --drb 2>&1`
28
28
  break unless output.include?("No server is running")
@@ -40,7 +40,7 @@ describe "script/spec_server file", :shared => true do
40
40
  f.write YAML.dump(fixtures)
41
41
  end
42
42
 
43
- Timeout.timeout(10) do
43
+ Timeout.timeout(20) do
44
44
  loop do
45
45
  output = `#{RAILS_ROOT}/script/spec #{dir}/sample_modified_fixture.rb --drb 2>&1`
46
46
  break unless output.include?("No server is running")
@@ -71,14 +71,25 @@ end
71
71
 
72
72
  describe "script/spec_server file with TextMate bundle" do
73
73
  it_should_behave_like "script/spec_server file"
74
+ def tmbundle_directory
75
+ current_directory = File.expand_path("#{File.dirname(__FILE__)}/../../../../../../")
76
+ directories = current_directory.split('/')
77
+ while directories.any?
78
+ current_directory = File.join(*directories)
79
+ bundle_directory = File.join(current_directory, @bundle_name)
80
+ return bundle_directory if File.directory?(bundle_directory)
81
+ directories.pop
82
+ end
83
+ end
84
+
74
85
  before(:each) do
75
- dir = File.dirname(__FILE__)
76
86
  @tmbundle_install_directory = File.expand_path("#{Dir.tmpdir}/Library/Application Support/TextMate/Bundles")
77
87
  @bundle_name = "RSpec.tmbundle"
88
+ @tmbundle_source_directory = tmbundle_directory
89
+
78
90
  FileUtils.mkdir_p(tmbundle_install_directory)
79
- bundle_dir = File.expand_path("#{dir}/../../../../../../#{@bundle_name}")
80
- File.directory?(bundle_dir).should be_true
81
- unless system(%Q|ln -s #{bundle_dir} "#{tmbundle_install_directory}"|)
91
+ File.directory?(tmbundle_source_directory).should be_true
92
+ unless system(%Q|ln -s #{tmbundle_source_directory} "#{tmbundle_install_directory}"|)
82
93
  raise "Creating link to Textmate Bundle"
83
94
  end
84
95
  start_spec_server
data/spec/spec_helper.rb CHANGED
@@ -29,7 +29,7 @@ module Spec
29
29
  module Rails
30
30
  module Example
31
31
  class ViewExampleGroupController
32
- set_view_path File.join(File.dirname(__FILE__), "..", "spec", "resources", "views")
32
+ prepend_view_path File.join(File.dirname(__FILE__), "..", "spec", "resources", "views")
33
33
  end
34
34
  end
35
35
  end
@@ -49,19 +49,30 @@ class Proc
49
49
  end
50
50
  end
51
51
 
52
- Spec::Runner.configure do |config|
53
- config.before(:each, :type => :controller) do
54
- end
55
- end
56
-
57
-
58
- ActionController::Routing::Routes.clear! # only since we're drawing routes here
59
52
  ActionController::Routing::Routes.draw do |map|
60
53
  map.connect 'action_with_method_restriction', :controller => 'redirect_spec', :action => 'action_with_method_restriction', :conditions => { :method => :get }
61
54
  map.connect 'action_to_redirect_to_action_with_method_restriction', :controller => 'redirect_spec', :action => 'action_to_redirect_to_action_with_method_restriction'
62
55
 
63
56
  map.resources :rspec_on_rails_specs
64
- map.connect 'custom_route', :controller => 'custom_route_spec', :action => 'custom_route'
57
+ map.custom_route 'custom_route', :controller => 'custom_route_spec', :action => 'custom_route'
65
58
  map.connect ":controller/:action/:id"
66
59
  end
67
60
 
61
+ module HelperMethods
62
+ def method_in_module_included_in_configuration
63
+ end
64
+ end
65
+
66
+ module HelperMacros
67
+ def accesses_configured_helper_methods
68
+ it "has access to methods in modules included in configuration" do
69
+ method_in_module_included_in_configuration
70
+ end
71
+ end
72
+ end
73
+
74
+ Spec::Runner.configure do |config|
75
+ config.include HelperMethods
76
+ config.extend HelperMacros
77
+ end
78
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dchelimsky-rspec-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.99.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - RSpec Development Team
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-11 00:00:00 -08:00
12
+ date: 2009-02-11 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -19,7 +19,16 @@ dependencies:
19
19
  requirements:
20
20
  - - "="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.1.12
22
+ version: 1.1.99.1
23
+ version:
24
+ - !ruby/object:Gem::Dependency
25
+ name: rack
26
+ version_requirement:
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 0.4.0
23
32
  version:
24
33
  description: Behaviour Driven Development for Ruby on Rails.
25
34
  email:
@@ -34,6 +43,7 @@ extra_rdoc_files:
34
43
  - Manifest.txt
35
44
  - README.txt
36
45
  - TODO.txt
46
+ - Upgrade.txt
37
47
  - generators/rspec/templates/previous_failures.txt
38
48
  files:
39
49
  - History.txt
@@ -42,6 +52,7 @@ files:
42
52
  - README.txt
43
53
  - Rakefile
44
54
  - TODO.txt
55
+ - Upgrade.txt
45
56
  - features/step_definitions/people.rb
46
57
  - features/support/env.rb
47
58
  - features/transactions/transactions_should_rollback.feature
@@ -83,15 +94,14 @@ files:
83
94
  - lib/spec/rails/example/functional_example_group.rb
84
95
  - lib/spec/rails/example/helper_example_group.rb
85
96
  - lib/spec/rails/example/model_example_group.rb
86
- - lib/spec/rails/example/rails_example_group.rb
87
97
  - lib/spec/rails/example/render_observer.rb
88
98
  - lib/spec/rails/example/view_example_group.rb
89
99
  - lib/spec/rails/extensions.rb
90
- - lib/spec/rails/extensions/action_controller/base.rb
91
100
  - lib/spec/rails/extensions/action_controller/rescue.rb
92
101
  - lib/spec/rails/extensions/action_controller/test_response.rb
93
102
  - lib/spec/rails/extensions/action_view/base.rb
94
103
  - lib/spec/rails/extensions/active_record/base.rb
104
+ - lib/spec/rails/extensions/active_support/test_case.rb
95
105
  - lib/spec/rails/extensions/spec/matchers/have.rb
96
106
  - lib/spec/rails/extensions/spec/runner/configuration.rb
97
107
  - lib/spec/rails/interop/testcase.rb
@@ -104,6 +114,7 @@ files:
104
114
  - lib/spec/rails/matchers/redirect_to.rb
105
115
  - lib/spec/rails/matchers/render_template.rb
106
116
  - lib/spec/rails/mocks.rb
117
+ - lib/spec/rails/spec_server.rb
107
118
  - lib/spec/rails/story_adapter.rb
108
119
  - lib/spec/rails/version.rb
109
120
  - rspec-rails.gemspec
@@ -168,15 +179,15 @@ files:
168
179
  - spec/resources/views/view_spec/template_with_partial_with_array.rhtml
169
180
  - spec/spec/rails/example/assigns_hash_proxy_spec.rb
170
181
  - spec/spec/rails/example/configuration_spec.rb
182
+ - spec/spec/rails/example/controller_example_group_spec.rb
171
183
  - spec/spec/rails/example/controller_isolation_spec.rb
172
- - spec/spec/rails/example/controller_spec_spec.rb
173
184
  - spec/spec/rails/example/cookies_proxy_spec.rb
174
185
  - spec/spec/rails/example/example_group_factory_spec.rb
175
- - spec/spec/rails/example/helper_spec_spec.rb
176
- - spec/spec/rails/example/model_spec_spec.rb
186
+ - spec/spec/rails/example/helper_example_group_spec.rb
187
+ - spec/spec/rails/example/model_example_group_spec.rb
177
188
  - spec/spec/rails/example/shared_behaviour_spec.rb
178
189
  - spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
179
- - spec/spec/rails/example/view_spec_spec.rb
190
+ - spec/spec/rails/example/view_example_group_spec.rb
180
191
  - spec/spec/rails/extensions/action_controller_rescue_action_spec.rb
181
192
  - spec/spec/rails/extensions/action_view_base_spec.rb
182
193
  - spec/spec/rails/extensions/active_record_spec.rb
@@ -223,6 +234,6 @@ rubyforge_project: rspec
223
234
  rubygems_version: 1.2.0
224
235
  signing_key:
225
236
  specification_version: 2
226
- summary: rspec-rails 1.1.12
237
+ summary: rspec-rails 1.1.99.1
227
238
  test_files: []
228
239
 
@@ -1,28 +0,0 @@
1
- require 'spec/interop/test'
2
-
3
- if ActionView::Base.respond_to?(:cache_template_extension)
4
- ActionView::Base.cache_template_extensions = false
5
- end
6
-
7
- module Spec
8
- module Rails
9
-
10
- module Example
11
- if ActiveSupport.const_defined?(:TestCase)
12
- class RailsExampleGroup < ActiveSupport::TestCase
13
- include ActionController::Assertions::SelectorAssertions
14
- end
15
- else
16
- class RailsExampleGroup < Test::Unit::TestCase
17
- end
18
- end
19
-
20
- class RailsExampleGroup
21
- include Spec::Rails::Matchers
22
- include Spec::Rails::Mocks
23
- Spec::Example::ExampleGroupFactory.default(self)
24
- end
25
-
26
- end
27
- end
28
- end
@@ -1,14 +0,0 @@
1
- module ActionController
2
- class Base
3
- class << self
4
- def set_view_path(path)
5
- [:append_view_path, :template_root=].each do |method|
6
- if respond_to?(method)
7
- return send(method, path)
8
- end
9
- end
10
- end
11
- end
12
- end
13
- end
14
-