tutorialzine.com

...Unpoly you may also use up.util.parseUrl(), which implements the technique in this card with tests and all caveats fixed. Related topic: JavaScript: Working with Query Parameters Javascript: Read params from...

Views are normally (for good reason) not rendered in controller specs. If you need it to happen, use:

Developing complex regular expressions quickly blows my mind. Here are some online regex editors that help you by highlighting matching...

Rails 7.1 added a new method Rails.env.local?. If you want to stub the Rails env correctly, use ActiveSupport::EnvironmentInquirer like...

makandra dev
browsercookielimits.squawky.net

...Behind the link, you'll find a simple HTML page that offers some cookie tests (how large, how many etc) and an overview of this data for various browsers.

Turns out, Cucumber::MultilineArgument::DataTable#diff! caches some stuff. Code of the following form will not work as intended:

Enable local logging for Sentry when: Debugging Sentry event capture locally Testing error handling without polluting production metrics Developing background jobs and want to see what Sentry captures

rspec.info

Real-world example A real-world use case would be to test if the current page has a button with the label "Foo". There are many ways...

In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...

csstriggers.com

...something I get asked about often enough by developers, and while we can do tests with DevTools, I have both the time and inclination to shortcut that for everyone. I...

robots.thoughtbot.com

...discovered new tools and techniques to separate and reuse logic, making code easier to test, understand, and maintain. Now that we’ve learned about all these new tools, when do...

makandra dev
github.com

...this to run a full setup. After basic setup (see geordi help setup), runs tests and loads a staging dump into the database. geordi security-update Guides through our security...

makandra dev
thestartuptoolkit.com

Good collection of crash-course articles about founding a start up, getting funded, validating ideas, etc.

browsera.com

Browsera automatically detects cross-browser layout problems and scripting errors on your website.

I recently browsed through the ActiveSupport code and found some nice stuff I did not know about: ActiveSupport::Callbacks

37signals.com

# Generate paths and URLs > app.project_path(Project.last) => "/projects/34" # Make requests > app.get '/projects/34' => 200 > app.response.body => " ..." # Use helpers helper.truncate("Foobar", length: 5...

If you expect method calls in RSpec 3, be aware that the argument matchers use very liberal equality rules (more...

...below by copying it somewhere to your .bashrc. # Usage: ptcommits 123456 function ptcommits { if test "$1" then local PTID=$(echo "$1" | grep "[0-9]*" -o) # Allow URLs git log --oneline...

Details Consider this Cucumber feature file: Feature: Something that needs to be tested Background: Given a user And I sign in Scenario: Sign out When I sign out...

github.com

By default, Cucumber uses mocha. This note shows to use RSpec stubs and mocks instead. Rspec 1 / Rails 2

Sometimes you need a piece of code to do something different for specs than for features. If you don't...

Cucumber_rails' old-school web-steps have been deprecated for a while, urging developers to write high-level step definitions...

There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written to input fields with fill_in. A workaround is to...

shapeshed.com

I've recently moved from using Parallels for browser testing to Sun's Open Source VirtualBox. Here's a walkthrough on how to get a browser testing suite for free...