#RubyOnRails - 07 May 2019
« Back 1 day Forward 1 day »
[08:38:07] tbuehlmann: homebear: seems rails can't find the template. what directories/files do you have in app/views?
[09:37:33] andywww: i have a situation where I want to use some fairly common development gems (bullet, better_errors and binding of caller) on some projects that I work on along side some colleagues, I want to use these gems but my colleagues are complaining that they have to install them also with them being in the gem file, is it at all possible to have a local ~/.<something> file that bundler will take notice of on my local machine only and
[09:41:21] tbuehlmann: andywww: not sure about that, but there are optional groups. gems in this group would only be installed when running `bundle install --with name`, maybe that's something for you. this group would be in the same Gemfile, though
[09:49:08] andywww: running bundle still installs the gems, not to worry I’ll just have to remember to remove the entries before commit
[10:24:28] andywww: okay I see whats happening, the BUNDLE_WITH is getting added to the remembered params, putting that line in my local ~/.bundle/config (i hope) will make it run for all projects bundled locally but not for others
[15:45:23] Net: I've refactored some code to make a few database queries in parallel via Threads. All our test are run in transactions, so this breaks some existing tests. What is my best option for resolving this?
[15:48:34] lupine: other than that, you can switch your testing strategy from transactions to truncate or delete
[15:49:23] Net: lupine: I wish we could upgrade to the latest right now, but that will take some time
[15:49:43] lupine: database_cleaner supports the other strategies natively, we do the same in our own codebase
[15:49:57] lupine: I think we stopped using transactions altogether due to the other weirdnesses they introduce into the test suite
[15:51:10] lupine: if so, it's just: DatabaseCleaner.clean_with(:truncation) instead of DatabaseCleaner.clean_with(:transaction)
[15:52:44] lupine: you could. what we do is specify rspec traits and assign different database-cleaner strategies to each
[15:53:12] lupine: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/spec/support/database_cleaner.rb
[16:23:13] mmachine: Hello. I'm trying to write some rspec cases for a controller that test for cookies being set. Which object should I be able to find these in?