rspec-rails 2.0.0.a3 → 2.0.0.a4
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.
- data/example_app_template.rb +7 -10
- data/lib/generators/rspec/controller/templates/view_spec.rb +1 -1
- data/lib/generators/rspec/install/install_generator.rb +4 -4
- data/lib/generators/rspec/scaffold/templates/edit_spec.rb +1 -1
- data/lib/generators/rspec/scaffold/templates/index_spec.rb +1 -1
- data/lib/generators/rspec/scaffold/templates/new_spec.rb +1 -1
- data/lib/generators/rspec/scaffold/templates/show_spec.rb +1 -1
- data/lib/rspec-rails.rb +0 -0
- data/lib/rspec/rails/version.rb +1 -1
- data/rspec-rails.gemspec +4 -4
- metadata +3 -3
- data/lib/generators/rspec/install/templates/script/rspec.tt +0 -4
data/example_app_template.rb
CHANGED
@@ -10,24 +10,21 @@ module ExampleApp
|
|
10
10
|
config.generators do |g|
|
11
11
|
g.test_framework :rspec,
|
12
12
|
:fixtures => false,
|
13
|
-
:
|
14
|
-
:routes => true,
|
13
|
+
:routes => false,
|
15
14
|
:views => false
|
16
|
-
|
17
|
-
g.integration_tool :rspec
|
18
15
|
end
|
19
16
|
end
|
20
17
|
end
|
21
18
|
CODE
|
22
19
|
|
23
|
-
run('
|
20
|
+
run('bundle install')
|
24
21
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
22
|
+
run('script/rails g rspec:install')
|
23
|
+
run('script/rails g model thing name:string')
|
24
|
+
run('script/rails g controller widgets index')
|
25
|
+
run('script/rails g integration_test widgets')
|
29
26
|
|
30
27
|
run('rake db:migrate')
|
31
28
|
run('rake db:test:prepare')
|
32
|
-
run('
|
29
|
+
run('bin/rspec spec')
|
33
30
|
run('rake spec')
|
@@ -16,10 +16,10 @@ DESC
|
|
16
16
|
directory 'lib'
|
17
17
|
end
|
18
18
|
|
19
|
-
def copy_script_files
|
20
|
-
directory "script"
|
21
|
-
chmod "script/rspec", 0755, :verbose => false
|
22
|
-
end
|
19
|
+
# def copy_script_files
|
20
|
+
# directory "script"
|
21
|
+
# chmod "script/rspec", 0755, :verbose => false
|
22
|
+
# end
|
23
23
|
|
24
24
|
def copy_spec_files
|
25
25
|
directory 'spec'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
4
4
|
describe "/<%= table_name %>/edit.html.<%= options[:template_engine] %>" do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
4
4
|
describe "/<%= table_name %>/index.html.<%= options[:template_engine] %>" do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
4
4
|
describe "/<%= table_name %>/new.html.<%= options[:template_engine] %>" do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
4
4
|
describe "/<%= table_name %>/show.html.<%= options[:template_engine] %>" do
|
data/lib/rspec-rails.rb
ADDED
File without changes
|
data/lib/rspec/rails/version.rb
CHANGED
data/rspec-rails.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in
|
3
|
+
# Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
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.a4"
|
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-
|
12
|
+
s.date = %q{2010-02-04}
|
13
13
|
s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.markdown"
|
@@ -27,7 +27,6 @@ Gem::Specification.new do |s|
|
|
27
27
|
"lib/generators/rspec/helper/templates/helper_spec.rb",
|
28
28
|
"lib/generators/rspec/install/install_generator.rb",
|
29
29
|
"lib/generators/rspec/install/templates/lib/tasks/rspec.rake",
|
30
|
-
"lib/generators/rspec/install/templates/script/rspec.tt",
|
31
30
|
"lib/generators/rspec/install/templates/spec/rcov.opts",
|
32
31
|
"lib/generators/rspec/install/templates/spec/spec.opts",
|
33
32
|
"lib/generators/rspec/install/templates/spec/spec_helper.rb",
|
@@ -51,6 +50,7 @@ Gem::Specification.new do |s|
|
|
51
50
|
"lib/generators/rspec/scaffold/templates/new_spec.rb",
|
52
51
|
"lib/generators/rspec/scaffold/templates/routing_spec.rb",
|
53
52
|
"lib/generators/rspec/scaffold/templates/show_spec.rb",
|
53
|
+
"lib/rspec-rails.rb",
|
54
54
|
"lib/rspec/rails.rb",
|
55
55
|
"lib/rspec/rails/example.rb",
|
56
56
|
"lib/rspec/rails/example/controller_example_group.rb",
|
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.a4
|
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-
|
13
|
+
date: 2010-02-04 00:00:00 -06:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -54,7 +54,6 @@ files:
|
|
54
54
|
- lib/generators/rspec/helper/templates/helper_spec.rb
|
55
55
|
- lib/generators/rspec/install/install_generator.rb
|
56
56
|
- lib/generators/rspec/install/templates/lib/tasks/rspec.rake
|
57
|
-
- lib/generators/rspec/install/templates/script/rspec.tt
|
58
57
|
- lib/generators/rspec/install/templates/spec/rcov.opts
|
59
58
|
- lib/generators/rspec/install/templates/spec/spec.opts
|
60
59
|
- lib/generators/rspec/install/templates/spec/spec_helper.rb
|
@@ -78,6 +77,7 @@ files:
|
|
78
77
|
- lib/generators/rspec/scaffold/templates/new_spec.rb
|
79
78
|
- lib/generators/rspec/scaffold/templates/routing_spec.rb
|
80
79
|
- lib/generators/rspec/scaffold/templates/show_spec.rb
|
80
|
+
- lib/rspec-rails.rb
|
81
81
|
- lib/rspec/rails.rb
|
82
82
|
- lib/rspec/rails/example.rb
|
83
83
|
- lib/rspec/rails/example/controller_example_group.rb
|