Skip to content

Commit 7dd96c2

Browse files
committed
wip
1 parent 9f3819d commit 7dd96c2

File tree

4 files changed

+14
-23
lines changed

4 files changed

+14
-23
lines changed

.travis.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,6 @@ before_script:
3131

3232
script: "script/run_build 2>&1"
3333

34-
rvm:
35-
- 1.8.7
36-
- 2.3.1
37-
- 2.2
38-
- 2.1
39-
- 2.0.0
40-
- 1.9.3
41-
- 1.9.2
42-
43-
env:
44-
- RAILS_VERSION='~> 4.2.0'
45-
- RAILS_VERSION=4-2-stable
46-
- RAILS_VERSION='~> 4.1.0'
47-
- RAILS_VERSION=4-1-stable
48-
- RAILS_VERSION='~> 4.0.4'
49-
- RAILS_VERSION=4-0-stable
50-
- RAILS_VERSION='~> 3.2.17'
51-
- RAILS_VERSION=3-2-stable
52-
- RAILS_VERSION='~> 3.1.12'
53-
- RAILS_VERSION='~> 3.0.20'
54-
5534
matrix:
5635
include:
5736
# Rails 5.x only supports 2.2+

example_app_generator/generate_app.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
gsub_file "Gemfile", /.*debugger.*/, ''
2323

2424
if Rails::VERSION::STRING >= '5.0.0'
25-
append_to_file('Gemfile', "gem 'rails-controller-testing', :git => 'https://github.com/rails/rails-controller-testing'\n")
25+
append_to_file('Gemfile', "gem 'rails-controller-testing', github: 'yujinakayama/rails-controller-testing', branch: 'debug'\n")
2626
end
2727

2828
# Nokogiri version is pinned in rspec-rails' Gemfile since it tend to cause installation problems
@@ -50,6 +50,7 @@
5050
| :groups => [:development, :test]
5151
|eval_gemfile '#{rspec_dependencies_gemfile}'
5252
|eval_gemfile '#{rails_dependencies_gemfile}'
53+
|gem 'foobarbaz', github: 'yujinakayama/foobarbaz'
5354
EOT
5455

5556
copy_file maintenance_branch_file, 'maintenance-branch'

example_app_generator/generate_stuff.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,15 @@ def using_source_path(path)
139139
'skip("Add a hash of attributes valid for your model")',
140140
'{}'
141141

142+
prepend_to_file 'spec/spec_helper.rb', <<-'END'
143+
module Foo
144+
def require(*)
145+
puts "require from #{caller.first}"
146+
super
147+
end
148+
end
149+
150+
include Foo
151+
END
152+
142153
final_tasks

script/custom_build_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function run_cukes {
55
function run_additional_specs {
66
bin/rake generate:app generate:stuff
77
pushd tmp/example_app
8-
bundle exec rspec
8+
./bin/rspec
99
popd
1010
}
1111

0 commit comments

Comments
 (0)