specjour 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.markdown CHANGED
@@ -1,5 +1,11 @@
1
1
  History
2
2
  =======
3
+ 0.2.5
4
+ -----
5
+ *2010-05-13*
6
+
7
+ * [changed] The rails plugin now runs in a Rails.configuration.after_intialize
8
+ block
3
9
 
4
10
  0.2.4
5
11
  -----
data/README.markdown CHANGED
@@ -37,7 +37,7 @@ Run the rake task to distribute the features among the managers you started.
37
37
  $ rake specjour:cucumber
38
38
 
39
39
  ## Rails
40
- Each worker should run their specs in an isolated database. Modify the test database name in your `config/database.yml` to include the following environment variable (Influenced by [parallel_tests](http://github.com/grosser/parallel_tests)):
40
+ Each worker should run their specs in an isolated database. Modify the test database name in your `config/database.yml` to include the following environment variable (Influenced by [parallel\_tests](http://github.com/grosser/parallel_tests)):
41
41
 
42
42
  test:
43
43
  database: blog_test<%=ENV['TEST_ENV_NUMBER']%>
@@ -49,7 +49,7 @@ Add the specjour gem to your project:
49
49
  Doing this enables a rails plugin wherein each worker will attempt to clear its database tables before running any specs via `DELETE FROM <table_name>;`. Additionally, test databases will be created if they don't exist (i.e. `CREATE DATABASE blog_test8` for the 8th worker) and your schema will be loaded when the database is out of date.
50
50
 
51
51
  ### Customizing database setup
52
- If the plugin doesn't set up the database properly for your test suite, bypass it entirely. Remove specjour as a project gem and create your own initializer to setup the database. Specjour sets the environment variable PREPARE_DB when it runs your specs so you can look for that when setting up the database.
52
+ If the plugin doesn't set up the database properly for your test suite, bypass it entirely. Remove specjour as a project gem and create your own initializer to setup the database. Specjour sets the environment variable PREPARE\_DB when it runs your specs so you can look for that when setting up the database.
53
53
 
54
54
  # config/initializers/specjour.rb
55
55
 
@@ -85,7 +85,7 @@ Distributed testing doesn't have to happen over multiple machines, just multiple
85
85
  * voxdolo - Endless support, alpha testing, various patches
86
86
  * leshill - Made rsync daemon configurable
87
87
  * testjour - Ripped off your name
88
- * parallel_tests - Made my test suite twice as fast
88
+ * parallel\_tests - Made my test suite twice as fast
89
89
 
90
90
  ## Note on Patches/Pull Requests
91
91
 
@@ -101,4 +101,4 @@ Distributed testing doesn't have to happen over multiple machines, just multiple
101
101
 
102
102
  ## Copyright
103
103
 
104
- Copyright (c) 2010 Sandro Turriate. See MIT_LICENSE for details.
104
+ Copyright (c) 2010 Sandro Turriate. See MIT\_LICENSE for details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
data/lib/specjour.rb CHANGED
@@ -23,7 +23,7 @@ module Specjour
23
23
  autoload :Cucumber, 'specjour/cucumber'
24
24
  autoload :Rspec, 'specjour/rspec'
25
25
 
26
- VERSION = "0.2.4".freeze
26
+ VERSION = "0.2.5".freeze
27
27
 
28
28
  class Error < StandardError; end
29
29
 
data/rails/init.rb CHANGED
@@ -1,4 +1,6 @@
1
1
  if ENV['PREPARE_DB']
2
- require 'specjour/db_scrub'
3
- Specjour::DbScrub.scrub
2
+ Rails.configuration.after_initialize do
3
+ require 'specjour/db_scrub'
4
+ Specjour::DbScrub.scrub
5
+ end
4
6
  end
data/specjour.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{specjour}
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sandro Turriate"]
12
- s.date = %q{2010-05-10}
12
+ s.date = %q{2010-05-13}
13
13
  s.default_executable = %q{specjour}
14
14
  s.description = %q{Distribute your spec suite amongst your LAN via Bonjour.}
15
15
  s.email = %q{sandro.turriate@gmail.com}
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 4
9
- version: 0.2.4
8
+ - 5
9
+ version: 0.2.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sandro Turriate
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-10 00:00:00 -04:00
17
+ date: 2010-05-13 00:00:00 -04:00
18
18
  default_executable: specjour
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency