rspec-rails 1.3.3.rc → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- === Version 1.3.3 / (in git)
1
+ === Version 1.3.3 / 2010-10-09
2
2
 
3
3
  * enhancements
4
4
  * replace use of 'returning' with 'tap'
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ Hoe.spec 'rspec-rails' do
15
15
  self.description = "Behaviour Driven Development for Ruby on Rails."
16
16
  self.rubyforge_name = 'rspec'
17
17
  self.developer 'RSpec Development Team', 'rspec-devel@rubyforge.org'
18
- self.extra_deps = [["rspec","1.3.1.rc"],["rack",">=1.0.0"]]
18
+ self.extra_deps = [["rspec","1.3.1"],["rack",">=1.0.0"]]
19
19
  self.extra_dev_deps = [["cucumber",">= 0.3.99"]]
20
20
  self.remote_rdoc_dir = "rspec-rails/#{Spec::Rails::VERSION::STRING}"
21
21
  self.history_file = 'History.rdoc'
@@ -72,6 +72,10 @@ module Spec
72
72
  after {ensure_that_base_view_path_is_not_set_across_example_groups}
73
73
 
74
74
  def ensure_that_flash_and_session_work_properly #:nodoc:
75
+ # For some reason which I do not yet understand, when running
76
+ # examples with rake on ruby-1.9.2, the @controller is not defined.
77
+ @controller ||= ViewExampleGroupController.new
78
+
75
79
  @controller.class.__send__ :public, :flash
76
80
  @controller.__send__ :initialize_template_class, @response
77
81
  @controller.__send__ :assign_shortcuts, @request, @response
@@ -21,11 +21,14 @@ module Spec
21
21
  m = mock("#{model_class.name}_#{id}", options_and_stubs)
22
22
  m.__send__(:__mock_proxy).instance_eval <<-CODE
23
23
  def @target.as_new_record
24
- self.stub!(:id).and_return nil
25
- self.stub!(:to_param).and_return nil
26
- self.stub!(:new_record?).and_return true
24
+ self.stub(:id).and_return nil
25
+ self.stub(:to_param).and_return nil
26
+ self.stub(:new_record?).and_return true
27
27
  self
28
28
  end
29
+ def @target.to_str
30
+ self.to_s
31
+ end
29
32
  def @target.is_a?(other)
30
33
  #{model_class}.ancestors.include?(other)
31
34
  end
@@ -5,7 +5,7 @@ module Spec # :nodoc:
5
5
  MAJOR = 1
6
6
  MINOR = 3
7
7
  TINY = 3
8
- PRE = 'rc'
8
+ PRE = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
11
11
 
metadata CHANGED
@@ -1,14 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7712030
5
- prerelease: true
4
+ prerelease: false
6
5
  segments:
7
6
  - 1
8
7
  - 3
9
8
  - 3
10
- - rc
11
- version: 1.3.3.rc
9
+ version: 1.3.3
12
10
  platform: ruby
13
11
  authors:
14
12
  - RSpec Development Team
@@ -16,7 +14,7 @@ autorequire:
16
14
  bindir: bin
17
15
  cert_chain: []
18
16
 
19
- date: 2010-10-03 00:00:00 -05:00
17
+ date: 2010-10-09 00:00:00 -05:00
20
18
  default_executable:
21
19
  dependencies:
22
20
  - !ruby/object:Gem::Dependency
@@ -27,13 +25,11 @@ dependencies:
27
25
  requirements:
28
26
  - - "="
29
27
  - !ruby/object:Gem::Version
30
- hash: 7712022
31
28
  segments:
32
29
  - 1
33
30
  - 3
34
31
  - 1
35
- - rc
36
- version: 1.3.1.rc
32
+ version: 1.3.1
37
33
  type: :runtime
38
34
  version_requirements: *id001
39
35
  - !ruby/object:Gem::Dependency
@@ -44,7 +40,6 @@ dependencies:
44
40
  requirements:
45
41
  - - ">="
46
42
  - !ruby/object:Gem::Version
47
- hash: 23
48
43
  segments:
49
44
  - 1
50
45
  - 0
@@ -60,7 +55,6 @@ dependencies:
60
55
  requirements:
61
56
  - - ">="
62
57
  - !ruby/object:Gem::Version
63
- hash: 213
64
58
  segments:
65
59
  - 0
66
60
  - 3
@@ -76,7 +70,6 @@ dependencies:
76
70
  requirements:
77
71
  - - ">="
78
72
  - !ruby/object:Gem::Version
79
- hash: 19
80
73
  segments:
81
74
  - 2
82
75
  - 6
@@ -269,7 +262,7 @@ licenses: []
269
262
  post_install_message: |
270
263
  **************************************************
271
264
 
272
- Thank you for installing rspec-rails-1.3.3.rc
265
+ Thank you for installing rspec-rails-1.3.3
273
266
 
274
267
  If you are upgrading, do this in each of your rails apps
275
268
  that you want to upgrade:
@@ -291,27 +284,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
291
284
  requirements:
292
285
  - - ">="
293
286
  - !ruby/object:Gem::Version
294
- hash: 3
295
287
  segments:
296
288
  - 0
297
289
  version: "0"
298
290
  required_rubygems_version: !ruby/object:Gem::Requirement
299
291
  none: false
300
292
  requirements:
301
- - - ">"
293
+ - - ">="
302
294
  - !ruby/object:Gem::Version
303
- hash: 25
304
295
  segments:
305
- - 1
306
- - 3
307
- - 1
308
- version: 1.3.1
296
+ - 0
297
+ version: "0"
309
298
  requirements: []
310
299
 
311
300
  rubyforge_project: rspec
312
301
  rubygems_version: 1.3.7
313
302
  signing_key:
314
303
  specification_version: 3
315
- summary: rspec-rails 1.3.3.rc
304
+ summary: rspec-rails 1.3.3
316
305
  test_files: []
317
306