Last active
August 14, 2021 05:42
-
-
Save linjunpop/4367228 to your computer and use it in GitHub Desktop.
Revisions
-
linjunpop revised this gist
Feb 19, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ # spec/request_helper.rb ENV["RAILS_ENV"] = 'capybara' RSpec.configure do |config| config.before(:suite) do %x[bundle exec rake assets:precompile] end end -
linjunpop renamed this gist
Jan 7, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
linjunpop revised this gist
Dec 24, 2012 . 1 changed file with 5 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,8 +4,11 @@ config.serve_static_assets = true config.static_cache_control = "public, max-age=3600" config.assets.compress = true config.assets.compile = false config.assets.precompile += %w(email.css) config.assets.digest = true config.assets.prefix = "/capybara_test_assets" end -
linjunpop created this gist
Dec 24, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ # Capybara, Rspec, Rails assets pipeline A clean workaround for running capybara tests on Rails with assets pipeline enabled. Original: https://github.com/jnicklas/capybara/pull/500#issuecomment-2972597 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ # environments/capybara.rb Dummy::Application.configure do config.serve_static_assets = true config.static_cache_control = "public, max-age=3600" config.assets.digest = false config.assets.prefix = "/capybara_test_assets" config.assets.precompile += %w(email.css) end This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ # spec/request_helper.rb ENV["RAILS_ENV"] ||= 'capybara' RSpec.configure do |config| config.before(:all) do %x[bundle exec rake assets:precompile] end end