Spreewald 1.1.0 drops the be_true and be_false matchers in order to be RSpec 3 and Ruby 2 compatible...
Code snippet tested with Rails 2.3 def index # ... if request.xhr? html = render_to_string(:partial => "list", :layout => false) respond_to...
The attached post shows some alternative ways to define Strings in Ruby using the percent notation. This can be useful...
This actually works: class Klass def initialize `hi world` end def `(message) puts "Called with backticks: #{message}" end end
The debugger gem does not seem to be properly working on Ruby 2. Use byebug instead! Byebug is a simple...
The attached RSpec matcher allows for comfortably testing delegation. Examples describe Post do it { should delegate(:name).to(:author).with...
Automatically builds gems from Bower packages (currently 1700 gems available). Packaged Javascript files are then automatically available in your asset...
If your requests blow up in Ruby or CURL, the server you're connecting to might only support requests with...
This card describes how to pass an array with multiple element to a JavaScript function, so that the first array...
In whenever you can schedule Ruby code directly like so: every 1.day, :at => '4:30 am' do runner "MyModel.task_to...
So you're getting an error message like the following, although your Gemfile lists shoulda-matchers and it has always...
If you have some file or directory that should trigger a Spring reboot, tell Spring e.g. in config/spring.rb: Spring.watch 'file.rb...
Aruba is an extension to Cucumber that helps integration-testing command line tools. When your tests involve a Rails test...
Provides a value container that guarantees atomic updates to this value in a multi-threaded Ruby program. Originally linked to...
Since Ruby 2.1, defining a method returns its name as a Symbol: def foo() end # => :foo define_method :foo do...
"Keyword arguments" allow naming method arguments (optionally setting a default value). By using the double-splat operator, you can collect...
Now supports Rails 4.1 and Ruby 2.1.
As you know, assignable_values does not invalidate a record even when an attribute value becomes unassignable. See this example...
assignable_values now supports Rails 4.1 and Ruby 2.1.0.
Travis CI is a free continuous integration testing service. However, it is really fragile and will break more than it...
A little-known feature of modern Regexp engines that help when optimizing a pattern that will be matched against long...
When you tell rbenv to install a Ruby it does not know about, you will get an error message.
EdgeRider 0.3.0 adds support for Rails 4.1 and Ruby 2.1. It forward-ports ActiveRecord::Base.scoped to Rails 4.1.
When you have a string containing umlauts which don't behave as expected (are not matched with a regexp, can...