makandra dev
innig.net

If you want to get a deep understanding of how closures, blocks, procs & lambdas in Ruby work, check out the...

makandra dev

Spreewald now has a spreewald binary that lists all available steps, optionally filtering them. Example: $> spreewald # All Spreewald steps

To achieve this goal you have to setup the session store like the following example: MyApp::Application.config.session_store( :cookie_store...

...it with additional joins or conditions. We call this chaining scopes. In practice chaining becomes problematic when scope chains grow more complex. In particular having JOINs in your scope will...

...year is the week with January 4th in it. All days in this week belong to the year. This means that January 1st, 2nd and 3rd may or may not...

...the year. I am not sure which year December days in the same week belong to, I believe the week actually gets split into two calendar weeks in two different...

This will show you how to create a RSS feed that the Feed Validator considers valid. Note that RSS is...

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

makandra dev

The Capybara API is somewhat hard for parse for a list of methods you can call on a Capybara node...

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

...you would consider invalid might suddenly make sense for #encode. This very likely works best when your strings are in few languages that share a similar character set, e.g. English...

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

...like text and images. While this may be useful in most situations, it may become annoying in others. If you e.g. want to allow the user to scroll/move horizontally within...

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

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

I ran into a situation in which I received the yarn integrity check warning when starting the rails console even...

makandra dev
aws.amazon.com

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

There are several ways to merge two (or more) PDF files to a single file using the Linux command line...

dev.mysql.com

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

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

Running Cucumber tests while your cucumber.yml is 100% valid may still produce the following error. cucumber.yml was found, but could...