rspec-rails 2.0.0.a6 → 2.0.0.a7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +7 -1
- data/Rakefile +1 -1
- data/example_app_template.rb +1 -1
- data/lib/generators/rspec/install/templates/spec/spec_helper.rb +1 -1
- data/lib/rspec/rails/example/controller_example_group.rb +1 -1
- data/lib/rspec/rails/example/request_example_group.rb +1 -1
- data/lib/rspec/rails/mocks.rb +1 -1
- data/lib/rspec/rails/transactional_database_support.rb +1 -1
- data/lib/rspec/rails/version.rb +1 -1
- data/rspec-rails.gemspec +5 -5
- metadata +3 -3
data/README.markdown
CHANGED
@@ -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.
|
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
|
data/example_app_template.rb
CHANGED
@@ -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 =>
|
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
|
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'
|
data/lib/rspec/rails/mocks.rb
CHANGED
data/lib/rspec/rails/version.rb
CHANGED
data/rspec-rails.gemspec
CHANGED
@@ -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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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-
|
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.
|
24
|
+
version: 2.0.0.a6
|
25
25
|
version:
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: webrat
|