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

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

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.

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

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

Modern IRB has time measurement built in. measure # Enable measure :off # Disable Custom Should your version of IRB not offer...

To test whether two arrays have the same elements regardless of order, you can use the =~ matcher in RSpec < 2.11: actual_array.should =~ expected_array If either side is an ActiveRecord scope...

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

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

The following will search for all .feature files containing a search term and run them using geordi. find features/ -name...

If you want to sort values from an enumerable into two arrays based on whether they match a certain criteria...

track down warnings and to see failing specs immediately or to get an overview of the core...

tl;dr: Upgrade the gem to at least 4.0.1 When you use rspec_rails in a version < 4 with Rails...

Run rspec-and-cucumber from any project directory to run both RSpec and Cucumber. If available, rspec_spinner or cucumber...

You will need to upgrade to RSpec >= 2 and rspec-rails >= 2 for Rails 3. Here are some hints to...

You probably know about the possibility to tag scenarios in Cucumber to run your own piece of code before the...

makandra dev

The handy method has_select?(field, :selected => text) does not behave as expected with Cucumber 0.10.2, Capybara 0.4.1.2 and Selenium...