The goal is to get Jasmine specs running in a Rails project using Webpacker, with the browser based test runner...

makandra dev

Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...

makandra dev

...I want to point out that it has clear strengths, too. Pro Simple and beautiful interface. Outstandingly organized source code. Have never seen a JS library that was this structured...

...name ( by ) until it starts replacing into tags. Seriously. This is just horribly broken beyond repairs, so we do it ourselves. While the documentation states that allowedTags is processed upon...

This step will pass if the specified select is sorted. Then /^the "(.*?)" select should be sorted$/ do |label, negate|

If your external displays not switching on or showing a weird behavior (for e.g. all displays getting the same configuration all the time) you can fix it by switching off...

...in the first step. Afterwards you can apply your whole configuration via xrandr. This behavior could be a bug in the kernel and may be fixed in linux 4.8.

Instead of using this hack you might want to use MariaDB 10.x which can work with both old and...

Around will not happen until after a feature's Background has been processed. Use Before and After to avoid that...

bugs.ruby-lang.org

TL;DR Under certain circumstances, dynamically defined symbols may break keyword arguments in Ruby 2.2. This was fixed in Ruby...

With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...

makandra dev

Never use raise_error without specifying the Error you expect. expect { do_a_lot_of_complicated_stuff }.to raise_error...

...failed apparently. Here is a traceroute to 1.2.3.4: HOST: foo.example.com Loss% Snt Last Avg Best Wrst StDev...

We use CarrierWave in many of our projects to store and serve files of various formats - mostly images. A common...

...be quite useful to quickly find the JavaScript that is responsible for some (unexpected) behavior. You can use DOM Breakpoints for debugging subtree modifications, attribute modifications or node removal.

...after hooks. But, just like the default task, it calls update_code at the beginning, symlink to link the "current" path and restart once all done. -- Those are the hooks...

...first update the code and then migrate -- making the deploy:update_code hook the better choice...

This can happen with a very simple model: class Note has_many :attachments end Everything looks normal: Note.all.to_a.size # => 8 Note.all.ids.size...

You can use JavaScript to get or set cookie values on the client. Using the vanilla JavaScript API

stefanjudis.com

Suppose you want to implement a publish/subscribe pattern in your Frontend application to react to data changes and events. First...

When you use the :as option to map a power to a controller method you can now override the generated...

Sometimes you need complex expectations on method arguments like this SomeApi.should_receive(:find).with(:query => '*foo*', :sort => 'timestamp ASC', :limit...

ariejan.net

...to choose smaller column sizes for performance (it won't matter until your project becomes big, so don't worry about it for now). Integer column lengths, mediumint, bigint, and...

...use this kind of call if your code is run by a background job. Better, don't use it at all. Exception Notifier 2.6 and 3 ExceptionNotifier::Notifier.background_exception_notification...

When you try to remove a non-existing index using remove_index, the migration will incorrectly pass without an error...

...to when precompiling your assets, and give your stylesheets access to all the regular bells and whistles (like asset_path, proper @imports etc): class DynamicStylesheetsController < ApplicationController def show logical_path...

Rails comes with a Rake task notes that shows code comments that start with "TODO", "FIXME", or "OPTIMIZE".