Skip to content

Commit

Permalink
[WIP] Testing more basic snippet command
Browse files Browse the repository at this point in the history
  • Loading branch information
benoittgt committed Jan 14, 2021
1 parent 93753b5 commit 4ab959b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
11 changes: 2 additions & 9 deletions Rakefile
Expand Up @@ -228,15 +228,8 @@ desc "Run short, self-contained snippets"
task :snippets do
sh "echo Running snippets"
sh <<-SH
(cd snippets;
unset BUNDLE_GEMFILE
ruby use_active_record_false.rb
)
SH
# sh "echo Running #{snippet}"
# sh "ruby #{snippet}"
# end
# end
ruby snippets/use_active_record_false.rb
SH
end

task default: [:spec, :acceptance, :snippets]
Expand Down
6 changes: 4 additions & 2 deletions snippets/use_active_record_false.rb
Expand Up @@ -7,9 +7,11 @@

# Those Gemfiles carefully pick the right versions depending on
# settings in the ENV, `.rails-version` and `maintenance-branch`.
eval_gemfile '../Gemfile-rspec-dependencies'
eval_gemfile '../Gemfile-rails-dependencies'
eval_gemfile './Gemfile-rspec-dependencies'
eval_gemfile './Gemfile-rails-dependencies'

gem "sqlite3"
gem "ammeter"
gem "rspec-rails", path: "../"
end

Expand Down

0 comments on commit 4ab959b

Please sign in to comment.