rspec-rails 2.0.0.a6 → 2.0.0.a7

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.
@@ -28,7 +28,7 @@ This installs the following gems:
28
28
  * rspec-mocks
29
29
  * rspec-rails
30
30
 
31
- ### What works
31
+ ### What works (and what doesn't)
32
32
 
33
33
  Currently supported:
34
34
 
@@ -37,9 +37,14 @@ Currently supported:
37
37
  * i.e. no way to turn this off
38
38
  * model specs in spec/models
39
39
  * controller specs in spec/controllers
40
+ * no view isolation yet
40
41
  * request specs in spec/requests
41
42
  * these wrap rails integration tests
42
43
  * rails assertions
44
+ * assertion-wrapping matchers
45
+ * redirect_to
46
+ * render_template
47
+ * template must exist (unlike rspec-rails-1.x)
43
48
  * webrat matchers
44
49
  * generators
45
50
 
@@ -48,4 +53,5 @@ Currently supported:
48
53
  * no view specs
49
54
  * no helper specs
50
55
  * no routing specs
56
+ * only works with ActiveRecord
51
57
 
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ begin
17
17
  gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
18
18
  gem.homepage = "http://github.com/rspec/rspec-rails"
19
19
  gem.authors = ["David Chelimsky", "Chad Humphries"]
20
- gem.add_dependency "rspec", ">= 2.0.0.a5"
20
+ gem.add_dependency "rspec", ">= 2.0.0.a6"
21
21
  gem.add_dependency "webrat", ">= 0.7.0"
22
22
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
23
23
  end
@@ -2,7 +2,7 @@ $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', :version => "'#{Rspec::Rails::Version::STRING}'"
5
+ gem 'rspec-rails', :version => Rspec::Rails::Version::STRING
6
6
 
7
7
  run('bundle install')
8
8
 
@@ -9,7 +9,7 @@ require 'rspec/rails'
9
9
  # in ./support/ and its subdirectories.
10
10
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
11
11
 
12
- Rspec::Core.configure do |config|
12
+ Rspec.configure do |config|
13
13
  # Remove this line if you don't want Rspec's should and should_not
14
14
  # methods or matchers
15
15
  require 'rspec/expectations'
@@ -25,7 +25,7 @@ module ControllerExampleGroupBehaviour
25
25
  CODE
26
26
  end
27
27
 
28
- Rspec::Core.configure do |c|
28
+ Rspec.configure do |c|
29
29
  c.include self, :example_group => { :file_path => /\bspec\/controllers\// }
30
30
  end
31
31
  end
@@ -20,7 +20,7 @@ module RequestExampleGroupBehaviour
20
20
  response
21
21
  end
22
22
 
23
- Rspec::Core.configure do |c|
23
+ Rspec.configure do |c|
24
24
  c.include self, :example_group => { :file_path => /\bspec\/requests\// }
25
25
  end
26
26
  end
@@ -126,6 +126,6 @@ module Rspec
126
126
  end
127
127
  end
128
128
 
129
- Rspec::Core.configure do |c|
129
+ Rspec.configure do |c|
130
130
  c.include Rspec::Rails::Mocks
131
131
  end
@@ -30,7 +30,7 @@ module Rspec
30
30
  end
31
31
  end
32
32
 
33
- Rspec::Core.configure do |c|
33
+ Rspec.configure do |c|
34
34
  c.include Rspec::Rails::TransactionalDatabaseSupport
35
35
  c.before { transactional_protection_start }
36
36
  c.after { transactional_protection_cleanup }
@@ -5,7 +5,7 @@ module Rspec # :nodoc:
5
5
  MAJOR = 2
6
6
  MINOR = 0
7
7
  TINY = 0
8
- PRE = 'a6'
8
+ PRE = 'a7'
9
9
 
10
10
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
11
11
 
@@ -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.a6"
8
+ s.version = "2.0.0.a7"
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-08}
12
+ s.date = %q{2010-02-15}
13
13
  s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "README.markdown"
@@ -72,14 +72,14 @@ Gem::Specification.new do |s|
72
72
  s.specification_version = 3
73
73
 
74
74
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
75
- s.add_runtime_dependency(%q<rspec>, [">= 2.0.0.a5"])
75
+ s.add_runtime_dependency(%q<rspec>, [">= 2.0.0.a6"])
76
76
  s.add_runtime_dependency(%q<webrat>, [">= 0.7.0"])
77
77
  else
78
- s.add_dependency(%q<rspec>, [">= 2.0.0.a5"])
78
+ s.add_dependency(%q<rspec>, [">= 2.0.0.a6"])
79
79
  s.add_dependency(%q<webrat>, [">= 0.7.0"])
80
80
  end
81
81
  else
82
- s.add_dependency(%q<rspec>, [">= 2.0.0.a5"])
82
+ s.add_dependency(%q<rspec>, [">= 2.0.0.a6"])
83
83
  s.add_dependency(%q<webrat>, [">= 0.7.0"])
84
84
  end
85
85
  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: 2.0.0.a6
4
+ version: 2.0.0.a7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-02-08 00:00:00 -04:00
13
+ date: 2010-02-15 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -21,7 +21,7 @@ dependencies:
21
21
  requirements:
22
22
  - - ">="
23
23
  - !ruby/object:Gem::Version
24
- version: 2.0.0.a5
24
+ version: 2.0.0.a6
25
25
  version:
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: webrat