rspec-rails 2.0.0.a3 → 2.0.0.a4

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,24 +10,21 @@ module ExampleApp
10
10
  config.generators do |g|
11
11
  g.test_framework :rspec,
12
12
  :fixtures => false,
13
- :integration_tool => false,
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('gem bundle')
20
+ run('bundle install')
24
21
 
25
- generate('rspec:install')
26
- generate('model', 'thing', 'name:string')
27
- generate('controller', 'widgets', 'index')
28
- generate('integration_test', 'widgets')
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('script/rspec spec')
29
+ run('bin/rspec spec')
33
30
  run('rake spec')
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe "/<%= file_name %>/<%= @action %>.html.<%= options[:template_engine] %>" do
4
4
  before(:each) do
@@ -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 File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../../spec_helper')
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 File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../../spec_helper')
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 File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../../spec_helper')
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 File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../../spec_helper')
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
File without changes
@@ -5,7 +5,7 @@ module Rspec # :nodoc:
5
5
  MAJOR = 2
6
6
  MINOR = 0
7
7
  TINY = 0
8
- PRE = 'a3'
8
+ PRE = 'a4'
9
9
 
10
10
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
11
11
 
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
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.a3"
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-01-24}
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.a3
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-01-24 00:00:00 -06:00
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
@@ -1,4 +0,0 @@
1
- <%= shebang %>
2
- ENV["RAILS_ENV"] ||= 'test'
3
- require File.expand_path('../../config/environment', __FILE__)
4
- require 'rspec/autorun'