dchelimsky-rspec-rails 1.1.99.6 → 1.1.99.7
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/History.txt +2 -0
- data/Rakefile +1 -1
- data/generators/rspec/templates/rspec.rake +1 -0
- data/generators/rspec/templates/script/spec +1 -1
- data/generators/rspec/templates/script/spec_server +14 -0
- data/generators/rspec/templates/spec_helper.rb +1 -1
- data/lib/spec/rails/spec_server.rb +15 -8
- data/lib/spec/rails/version.rb +1 -1
- data/rspec-rails.gemspec +6 -6
- metadata +4 -4
data/History.txt
CHANGED
@@ -43,6 +43,8 @@ IMPORTANT: This release includes the following backwards-compatibility-breaking
|
|
43
43
|
* rspec's rake tasks are not loaded when running "rake gems" or any of its subtasks
|
44
44
|
* only warn when rspec is not installed when trying to invoke an rspec rake task
|
45
45
|
* support 2 arg version of ActionController::Base#render (reported by Nathan Wilmes)
|
46
|
+
* rake spec:server:start doesn't choke if there is no tmp directory
|
47
|
+
* force cache_classes = false when running with spec_server. Closes #287.
|
46
48
|
|
47
49
|
=== Version 1.1.12 / 2009-01-11
|
48
50
|
|
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ Hoe.new('rspec-rails', Spec::Rails::VERSION::STRING) do |p|
|
|
20
20
|
p.description = "Behaviour Driven Development for Ruby on Rails."
|
21
21
|
p.rubyforge_name = 'rspec'
|
22
22
|
p.developer('RSpec Development Team', 'rspec-devel@rubyforge.org')
|
23
|
-
p.extra_deps = [["dchelimsky-rspec","1.1.99.
|
23
|
+
p.extra_deps = [["dchelimsky-rspec","1.1.99.7"],["rack",">=0.4.0"]]
|
24
24
|
p.extra_dev_deps = [["cucumber",">= 0.1.13"]]
|
25
25
|
p.remote_rdoc_dir = "rspec-rails/#{Spec::Rails::VERSION::STRING}"
|
26
26
|
end
|
@@ -144,6 +144,7 @@ namespace :spec do
|
|
144
144
|
$stderr.puts "spec_server is already running."
|
145
145
|
else
|
146
146
|
$stderr.puts %Q{Starting up spec_server ...}
|
147
|
+
FileUtils.mkdir('tmp') unless test ?d, 'tmp'
|
147
148
|
system("ruby", "script/spec_server", "--daemon", "--pid", daemonized_server_pid)
|
148
149
|
end
|
149
150
|
end
|
@@ -9,6 +9,20 @@ puts "Loading Rails environment"
|
|
9
9
|
ENV["RAILS_ENV"] = "test"
|
10
10
|
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
11
11
|
|
12
|
+
if Rails::VERSION::STRING >= '2.2' && Rails.configuration.cache_classes
|
13
|
+
warn <<-MESSAGE
|
14
|
+
|
15
|
+
#{'*'*50}
|
16
|
+
|
17
|
+
spec_server won't reload your classes if config.cache_classes
|
18
|
+
is set to true. Please modify environment/test.rb:
|
19
|
+
|
20
|
+
config.cache_classes = false
|
21
|
+
|
22
|
+
#{'*'*50}
|
23
|
+
MESSAGE
|
24
|
+
end
|
25
|
+
|
12
26
|
options = Hash.new
|
13
27
|
parser = OptionParser.new
|
14
28
|
parser.on("-d", "--daemon") {|ignore| options[:daemon] = true }
|
@@ -45,28 +45,33 @@ module Spec
|
|
45
45
|
$stdout = stdout
|
46
46
|
$stderr = stderr
|
47
47
|
|
48
|
+
::Rails::Configuration.extend Module.new {def cache_classes; false; end}
|
49
|
+
|
50
|
+
::ActiveSupport.const_defined?(:Dependencies) ?
|
51
|
+
::ActiveSupport::Dependencies.mechanism = :load :
|
52
|
+
::Dependencies.mechanism = :load
|
53
|
+
|
48
54
|
require 'action_controller/dispatcher'
|
49
55
|
dispatcher = ::ActionController::Dispatcher.new($stdout)
|
50
|
-
dispatcher.
|
51
|
-
dispatcher.cleanup_application :
|
52
|
-
dispatcher.reload_application
|
56
|
+
dispatcher.reload_application
|
53
57
|
|
54
58
|
if Object.const_defined?(:Fixtures) && Fixtures.respond_to?(:reset_cache)
|
55
59
|
Fixtures.reset_cache
|
56
60
|
end
|
57
61
|
|
58
|
-
::ActiveSupport.const_defined?(:Dependencies) ?
|
59
|
-
::ActiveSupport::Dependencies.mechanism = :load :
|
60
|
-
::Dependencies.mechanism = :load
|
61
62
|
|
62
|
-
|
63
|
+
unless Object.const_defined?(:ApplicationController)
|
64
|
+
%w(application_controller.rb application.rb).each do |name|
|
65
|
+
require_dependency(name) if File.exists?("#{RAILS_ROOT}/app/controllers/#{name}")
|
66
|
+
end
|
67
|
+
end
|
63
68
|
load "#{RAILS_ROOT}/spec/spec_helper.rb"
|
64
69
|
|
65
70
|
if in_memory_database?
|
66
71
|
load "#{RAILS_ROOT}/db/schema.rb" # use db agnostic schema by default
|
67
72
|
ActiveRecord::Migrator.up('db/migrate') # use migrations
|
68
73
|
end
|
69
|
-
|
74
|
+
|
70
75
|
::Spec::Runner::CommandLine.run(
|
71
76
|
::Spec::Runner::OptionParser.parse(
|
72
77
|
argv,
|
@@ -74,6 +79,8 @@ module Spec
|
|
74
79
|
$stdout
|
75
80
|
)
|
76
81
|
)
|
82
|
+
|
83
|
+
dispatcher.cleanup_application if dispatcher.respond_to?(:cleanup_application)
|
77
84
|
end
|
78
85
|
|
79
86
|
def in_memory_database?
|
data/lib/spec/rails/version.rb
CHANGED
data/rspec-rails.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{rspec-rails}
|
5
|
-
s.version = "1.1.99.
|
5
|
+
s.version = "1.1.99.7"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["RSpec Development Team"]
|
9
|
-
s.date = %q{2009-02-
|
9
|
+
s.date = %q{2009-02-18}
|
10
10
|
s.description = %q{Behaviour Driven Development for Ruby on Rails.}
|
11
11
|
s.email = ["rspec-devel@rubyforge.org"]
|
12
12
|
s.extra_rdoc_files = ["History.txt", "License.txt", "Manifest.txt", "README.txt", "TODO.txt", "generators/rspec/templates/previous_failures.txt"]
|
@@ -17,23 +17,23 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
s.rubyforge_project = %q{rspec}
|
19
19
|
s.rubygems_version = %q{1.3.1}
|
20
|
-
s.summary = %q{rspec-rails 1.1.99.
|
20
|
+
s.summary = %q{rspec-rails 1.1.99.7}
|
21
21
|
|
22
22
|
if s.respond_to? :specification_version then
|
23
23
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
24
24
|
s.specification_version = 2
|
25
25
|
|
26
26
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
27
|
-
s.add_runtime_dependency(%q<dchelimsky-rspec>, ["= 1.1.99.
|
27
|
+
s.add_runtime_dependency(%q<dchelimsky-rspec>, ["= 1.1.99.7"])
|
28
28
|
s.add_runtime_dependency(%q<rack>, [">= 0.4.0"])
|
29
29
|
s.add_development_dependency(%q<cucumber>, [">= 0.1.13"])
|
30
30
|
s.add_development_dependency(%q<hoe>, [">= 1.8.3"])
|
31
31
|
else
|
32
|
-
s.add_dependency(%q<dchelimsky-rspec>, ["= 1.1.99.
|
32
|
+
s.add_dependency(%q<dchelimsky-rspec>, ["= 1.1.99.7"])
|
33
33
|
s.add_dependency(%q<rack>, [">= 0.4.0"])
|
34
34
|
end
|
35
35
|
else
|
36
|
-
s.add_dependency(%q<dchelimsky-rspec>, ["= 1.1.99.
|
36
|
+
s.add_dependency(%q<dchelimsky-rspec>, ["= 1.1.99.7"])
|
37
37
|
s.add_dependency(%q<rack>, [">= 0.4.0"])
|
38
38
|
end
|
39
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dchelimsky-rspec-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.99.
|
4
|
+
version: 1.1.99.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RSpec Development Team
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-02-
|
12
|
+
date: 2009-02-18 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.1.99.
|
23
|
+
version: 1.1.99.7
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rack
|
@@ -257,6 +257,6 @@ rubyforge_project: rspec
|
|
257
257
|
rubygems_version: 1.2.0
|
258
258
|
signing_key:
|
259
259
|
specification_version: 2
|
260
|
-
summary: rspec-rails 1.1.99.
|
260
|
+
summary: rspec-rails 1.1.99.7
|
261
261
|
test_files: []
|
262
262
|
|