...hide gems from the backtrace. In such cases, log_subscriber.rb is the inner-most (i.e. "best") source in the backtrace. You probably have an initializer with this line: Rails.backtrace_cleaner.remove_silencers!

Rails flashes (FlashHash) track a list of used keys, which is not respected when comparing flash hashes.

...use Spreewald's "... in the HTML" meta step, or add this proxy step for better semantics: Then /^I should( not)? see "(.+?)" in the page source$/ do |negate, text|

...to intercept those RSS links, and Capybara internally remains on the previous page. This behavior can be circumvented with the following simple step: # Firefox seems to intercept RSS links. Use...

makandracards.com

The step we used in the past (Then "foo" should not be visibile) doesn't reliably work in Selenium features...

tl;dr In Chrome DevTools in the Sources tab you can activate Event Listener Breakpoints for debugging events. Example

drafts.csswg.org

...invalid calc value is ignored, so you might end up with missing or "random" behavior, depending on where you do this. The above example is valid once you use zero...

If you want to make your Rails application be capable of sending SMTP emails, check out the action mailer configuration...

Converting string characters to or from their integer value (7-bit ASCII value or UTF-8 codepoint) can be done...

Unfortunately, Capybara does not offer a switch to disable cookies in your test browser. However, you can work around that...

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

...Short explanation: asset_host is used for links to stylesheets and javascripts asset_host belongs to ActionController::Base -- changes are persistent and will not be reset after a request

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

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

You are not using javascript tests The file is served from a public folder (not via controller) Problem description...

Today in computer: In Coffeescript, on and yes are aliases for true. off and no are aliases for false.

I needed to make sure that an element is visible and not overshadowed by an element that has a higher...

...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.

stefanjudis.com

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

aws.amazon.com

Amazon Elastic Transcoder is video transcoding in the cloud. It is designed to be a highly scalable, easy to use...

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...

dev.mysql.com

Directly from the MySql docs: There are three likely causes for this error message. Usually it indicates network connectivity trouble...

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...

...your session in a previous request. Working around the issue You can avoid that behavior by stubbing the controller's session and querying that stub: persisted_session = ActionController::TestSession.new controller.stub...