Regular expressions in Javascript are represented by a RegExp object. There also is a regex literal as in many other...
You know that Devise offers RSpec test helpers for controller specs. However, in request specs, they will not work.
This looks like it is safe to use: 2.2.1 :001 > a = b = "hello world" "hello world" 2.2.1 :002 > a
I recommend to go straight to 2.1.5+ without intermediate steps. Otherwhise you burden yourself with unnecessary work of encoding problems...
Cucumber raises a Cucumber::Ambiguous if more than one step definitions match a step. Our new cucumber_priority gem provides...
Ruby has the class Proc which encapsulates a "block of code". There are 2 "flavors" of Procs: Those with "block...
This class contains nerdcore things such as disassembling a piece of Ruby into VM calls or enabling tail-call optimization...
From time to time, RubyMine suddenly did not accept any keyboard input and felt crashed, while mouse interaction was still...
You can use mail-tester.com to check your application's e-mails for issues that might cause e-mails to be...
Ag (aka "the silver searcher") is a very fast replacement for grep. It will parse your .gitignore for additional speedup...
Sometimes you just want to have a small web server that serves files to test something. Serve the current directory...
There are many solutions, but a very concise one is this: hash.merge!(hash) do |key, old_value, new_value|
Sometimes you want to know exactly how many objects exist within your running Ruby process. Here is how: stats = {} ObjectSpace.each...
By pressing Ctrl + Shift + V you can select a recently copied string for pasting.
This is basically Ruby-native syntax for andand.
Ruby has a set of methods to convert an object to another representation. Most of them come in explicit and...
When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when...
You want to test your 1GE or 10GE internet uplink? We needed to ensure we have full 10GE to the...
When dealing with AR scopes, you can remove conditions, order, etc by using the unscope method. It is available on...
PostgreSQL's array data type is pretty useful, but manipulating values of arrays can be awkward because of its syntax...
Rails 4 introduced raising an error on pending migrations. This is most annoying when you are crafting a migration but...
Ruby allows multiple assignment: a, b, c = o In order to prove multiple values from a single object, Ruby calls...
Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...
When a method has keyword arguments, Ruby offers implicit conversion of a Hash argument into keyword arguments. This conversion is...