rails_apps_composer 2.2.6 → 2.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/recipes/testing.rb +1 -17
  2. data/version.rb +1 -1
  3. metadata +4 -4
data/recipes/testing.rb CHANGED
@@ -7,6 +7,7 @@ after_bundler do
7
7
  if prefer :unit_test, 'rspec'
8
8
  say_wizard "recipe installing RSpec"
9
9
  generate 'rspec:install'
10
+ copy_from_repo 'spec/spec_helper.rb', :repo => 'https://raw.github.com/RailsApps/rails3-devise-rspec-cucumber/master/'
10
11
  unless prefer :email, 'none'
11
12
  generate 'email_spec:steps'
12
13
  inject_into_file 'spec/spec_helper.rb', "require 'email_spec'\n", :after => "require 'rspec/rails'\n"
@@ -33,21 +34,6 @@ RUBY
33
34
  # remove ActiveRecord artifacts
34
35
  gsub_file 'spec/spec_helper.rb', /config.fixture_path/, '# config.fixture_path'
35
36
  gsub_file 'spec/spec_helper.rb', /config.use_transactional_fixtures/, '# config.use_transactional_fixtures'
36
- # reset your application database to a pristine state during testing
37
- inject_into_file 'spec/spec_helper.rb', :before => "\nend" do
38
- <<-RUBY
39
- \n
40
- require 'database_cleaner'
41
- config.before(:suite) do
42
- DatabaseCleaner.strategy = :truncation
43
- DatabaseCleaner.orm = "mongoid"
44
- end
45
-
46
- config.before(:each) do
47
- DatabaseCleaner.clean
48
- end
49
- RUBY
50
- end
51
37
  # remove either possible occurrence of "require rails/test_unit/railtie"
52
38
  gsub_file 'config/application.rb', /require 'rails\/test_unit\/railtie'/, '# require "rails/test_unit/railtie"'
53
39
  gsub_file 'config/application.rb', /require "rails\/test_unit\/railtie"/, '# require "rails/test_unit/railtie"'
@@ -146,7 +132,6 @@ after_everything do
146
132
  if (prefer :authentication, 'omniauth') && (prefer :starter_app, 'users_app')
147
133
  say_wizard "copying RSpec files from the rails3-mongoid-omniauth examples"
148
134
  repo = 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/'
149
- copy_from_repo 'spec/spec_helper.rb', :repo => repo
150
135
  copy_from_repo 'spec/factories/users.rb', :repo => repo
151
136
  copy_from_repo 'spec/controllers/sessions_controller_spec.rb', :repo => repo
152
137
  copy_from_repo 'spec/controllers/home_controller_spec.rb', :repo => repo
@@ -157,7 +142,6 @@ after_everything do
157
142
  if (prefer :authentication, 'devise') && (prefer :starter_app, 'subdomains_app')
158
143
  say_wizard "copying RSpec files from the rails3-subdomains examples"
159
144
  repo = 'https://raw.github.com/RailsApps/rails3-subdomains/master/'
160
- copy_from_repo 'spec/spec_helper.rb', :repo => repo
161
145
  copy_from_repo 'spec/factories/users.rb', :repo => repo
162
146
  copy_from_repo 'spec/controllers/home_controller_spec.rb', :repo => repo
163
147
  copy_from_repo 'spec/controllers/users_controller_spec.rb', :repo => repo
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "2.2.6"
2
+ VERSION = "2.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_apps_composer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-30 00:00:00.000000000 Z
12
+ date: 2012-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -201,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
201
  version: '0'
202
202
  segments:
203
203
  - 0
204
- hash: -2996887239101560285
204
+ hash: -1051347487820290549
205
205
  required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  none: false
207
207
  requirements:
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  version: '0'
211
211
  segments:
212
212
  - 0
213
- hash: -2996887239101560285
213
+ hash: -1051347487820290549
214
214
  requirements: []
215
215
  rubyforge_project: rails_apps_composer
216
216
  rubygems_version: 1.8.24