github.com

The issue: You are using stub_const to change a constant value for your test. stub_const "SomeClass::CONST", 'test...

blog.bigbinary.com

This error is raised because your old database does not have a configured environment yet, which Rails 5 enforces.

Situation: You want to write a spec for a function inside an Angular service. This function at some point makes...

By default, browsers will not wrap text at syllable boundaries. Text is wrapped at word boundaries only. This card explains...

httpie.org

HTTPie consists of a single http command designed for painless debugging and interaction with HTTP servers, RESTful APIs, and web...

PostgreSQL supports the SQL OVERLAPS operator. You can use it to test if two date ranges overlap: => SELECT ('2001-02...

Summary: Don't add chromedriver-helper to the Gemfile the executables might break your tests in projects where chromedriver-helper...

relishapp.com

In most projects I know, Cucumber test suite speed is not an issue. Of course, running 350 features takes its...

Sometimes when working with VCR you still want to use webmock. Since VCR hooks into webmock and fails when an...

requestb.in

Requestb.in is a webservice that gives you a temporary URL you can use to test request. The page will automatically...

We're usually running Ubuntu LTS versions. Sometimes newer hardware requires packages from more recent Ubuntu releases that only come...

Checking if a JavaScript value is of a given type can be very confusing: There are two operators typeof and...

RSpec allows you to mark a single Example/ExampleGroup so that only this will be run. This is very useful when...

If you already selected an element and want to get its parent, you can call find(:xpath, '..') on it.

github.com

When an Rspec example fails, I usually investigate by running that example again using rspec . However, this does not work...

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

makandra dev

An end-to-end test (E2E test) is a script that remote-controls a web browser with tools like Selenium...

Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...

RSpec allows defining methods inside describe/context blocks which will only exist inside them. However, classes (or any constants, for that...

askubuntu.com

While the hardware mute button of my Lenovo x230 worked on Ubuntu 14.04 out of the box, it does not...

After loading a staging dump into development, you might get an ActiveRecord::EnvironmentMismatchError when trying to replace the database (like...

askubuntu.com

You need to disable "Bluetooth low energy", then follow these core steps: Make sure the headphones are in pairing mode...

docs.ruby-lang.org

Use return to return from a method. return accepts a value that will be the return value of the...

before(:all) runs the block once before all of the examples. before(:each) runs the block once before each...