github.com

Using this gem, whenever a Capybara test in Cucumber, Rspec or Minitest fails, the HTML for the failed page and...

As you know, assignable_values does not invalidate a record even when an attribute value becomes unassignable. See this example...

Travis CI is a free continuous integration testing service. However, it is really fragile and will break more than it...

regular-expressions.info

A little-known feature of modern Regexp engines that help when optimizing a pattern that will be matched against long...

RSpec 3.0 deprecates the :should way of writing specs for expecting things to happen. However, if you have tests you...

Sometimes you're getting an ActiveSupport deprecation warning that you cannot or don't want to fix. In these cases...

Warnings like those below may originate from rspec or shoulda-matchers or other gems that have not updated yet to...

SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...

When your Rails controller action responds with only a simple text, render text: 'Hello' may not be what you want...

If you get this error when you try to resize an OpenStack instance: # nova resize example 23 --poll

makandra dev
tldp.org

There are 3 built-in file descriptors: stdin, stdout and stderr (std=standard). (You can define your own, see the...

guides.rubyonrails.org

config.action_controller.action_on_unpermitted_parameters enables logging or raising an exception if parameters that are not explicitly permitted are...

makandra dev

Spring is a Rails application preloader. When debugging e.g. the rails gem, you'll be wondering why your raise, puts...

Programatically invoke Rails generators Require the generator, instantiate it and invoke it (because generators are Thor::Groups, you need...

docopt.org

docopt helps you define interface for your command-line app, and automatically generate parser for it. docopt is based on...

So you have a restangular collection and you want to remove an element from it, after you've successfully deleted...

With this command you can initiate an application restart without touching restart.txt. Unlike touching restart.txt, this tool initiates the restart...

linux.die.net

Sometimes you may want to print files from the command line, especially when you have lots of them.

Use the following command to test if a server (in this example: makandra.com on port 443) uses Perfect Forward Secrecy...

makandra dev
filippo.io

Enter the hostname of a server to test it for CVE-2014-0160.

wiki.macromates.com

When using TextMate2 with the cucumber bundle, it does not recognize step definitions (e.g. custom_steps.rb) as such but believes they...

browserstack.com

Local testing allows you to test your private and internal servers using the BrowserStack cloud, which has support for firewalls...

Your development machine is usually on a very good network connection. To test how your application behaves on a slow...

If you are trying to inspect timings in JavaScript, you can use console.time and console.timeEnd which will write to your...