postgresql.org

PostgreSQL's array data type is pretty useful, but manipulating values of arrays can be awkward because of its syntax...

makandra dev

Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...

Be careful when stubbing out attributes on records that are defined by associations. Nothing is as it seems to be...

wiki.github.com

The following example is from the Cucumber wiki: Given a blog post named "Random" with Markdown body """ Some Title, Eh...

In theory you can take any scope and extend it with additional joins or conditions. We call this chaining scopes...

This only applies to RSpec below version 1.3.2. The issue has been fixed in RSpec 1.3.2, and most likely RSpec...

mock.isssues.com

Sometimes in the course of development you may need to mock HTTP responses. This is a simple service to return...

github.com

...for Ruby. It could be run periodically from a scheduler and check if application tests are broken. In case of failed tests Cerberus sends notification to developers...

blog.whatwg.org

It turned out that the test subject didn't know that longdesc even existed before the tester told him about it. Can you blame him...

github.com

Rake tasks to run specs and tests in parallel, to use multiple CPUs and speedup test runtime...

mockito.org

Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with clean & simple API. Mockito doesn't give you hangover because the tests are very...

code.google.com

RESTClient is a Java application to test RESTful webservices. It can be used to test variety of HTTP communications...

github.com

Test spies are a form of test double that preserves the normal four-phase unit

Don't write resources :people, :concerns => :trashable Write resources :people do concerns :trashable end Why Writing a controller...

When you develop a gem and you have a Gemfile in your project directory, you might be surprised that your...

Spreewald's patiently repeats the given block again and again until it either passes or times out.

Note: We are talking about Machinist 1 here, Machinist 2 may have solved this or might require a different approach...

If you stub a method or set expectations with should_receive these stubbed methods may also yield blocks. This is...

sslscan is a nice tool to show details about TLS/SSL connections: ~> sslscan some-host-at.makandra.de Testing SSL server some-host-at.makandra.de on port 443 Supported Server Cipher(s): Failed SSLv3 256 bits ECDHE-RSA...

When refactoring a sequence of steps to a new, more descriptive step, you can use the steps method and Ruby...

class Note does 'strip_carriage_returns', :prose, :code end Here is the test that goes with it: describe Note do describe 'before_validation' do it_should_run_callbacks...

When updating WebMock, be prepared that your specs may send real requests into the depths of the internet unless you...

Capybara does not play nice with sites that have some actions protected by SSL, some not. A popular way to...

validates_acceptance_of :terms only works if terms is set to a value. The validation is skipped silently when terms...