...After('@chrome320x480') do Capybara.use_default_driver end You can use either chromium or chrome beta (as of 2012.05 the Version "19.0.1084.41 beta" works), or any other member of the family...
...bart@simpson.com" and the password "secret" When I sign in as "bart" Then I should bee on the home page And "logout" should be reachable
If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...
Instead, I'm now using a "full" selector to avoid the broken behavior: page.find('.message:nth-of-type(1)', :text => 'Hello World').text => "Hello World" page.find('.message:nth...
has_many :holidays validates_numericality_of :holiday_count end class Holiday < ActiveRecord::Base belongs_to :region after_save :update_holiday_count_in_region after_destroy :update_holiday_count_in...
region.update_attribute :holiday_count, region.holidays.count end end Note that there are probably better days to implement the holiday_count mechanism, but humor me for the sake of the...
If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...
...Rails booting a few seconds. In your binstubs, there should be something like this: begin load File.expand_path("../spring", __FILE__) rescue LoadError end Change it as follows. running_in_parallel...
...ENV.has_key?('TEST_ENV_NUMBER') || ARGV.any? { |arg| arg =~ /^parallel:/ } begin load File.expand_path("../spring", __FILE__) unless running_in_parallel rescue LoadError end That's it. bin/rspec your_spec.rb will now boot...
...s #find method raises an error if nothing could be found. #first should behave like #find used to. i18n requires Ruby >= 1.9 -> Add gem 'i18n', '< 0.7.0' # 0.7.0 requires Ruby...
Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...
Warning: Because of (unclear) rounding issues and missing decimal places (see examples below), do NOT use this when dealing with...
This is an awful way to test whether a number is shown on the screen: Then I should see "5...
Install Ubuntu Server Download an image from this site Select File > New… to and follow the instructions, choose the .iso...
This is not an issue in newer versions of HAML (starting with 5.0.0), as the ugly-option was removed...
We will be installing rbenv and ruby-build from our own fork, not from the Ubuntu sources. Installing rbenv
This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. This setup allows...
Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting...
If you want your application to display properly on iPad, iPhone or Android there are two things to do:
Example (broken in IE): flex: 0 1 calc(50% - 20px) Workaround: flex-basis: calc(50% - 20px) flex-grow: 0 // Default...
...has announced that, starting with Firefox 22, the popular open source web browser will begin blocking third-party cookies by default. That means only websites you actually visit will be...
With the impending release of Ruby on Rails 4, it looks like a lot of developers will be updating their...
Learning Rails for the first time should be fun, and Rails for Zombies allows you to get your feet wet...
Professionals can be recognised by the fact that they minimize complexity. Small modules, complete isolation of modules, minimal (in number...
The rubyforge gems model may not be perfect, but damnit people, when there’s a gem update I know that...
When Java first shipped, Bill Joy and James Gosling and the other members of the Java team thought that Java...
...and a lot of time has been spent without much progress, it may be better to do something rather than just enter AnalysisParalysis. The experience gained in the process often...