If rspec hangs with no output and you dont get a backtrace neither with --backtrace nor by just killing it...

Sometimes, you might have duplicate links on a page. Trying to click those links will by default cause Capybara to...

If you're writing a spec for an application using Resque, you may need to work off queues manually without...

You can use record.send(:update_without_callbacks) or record.send(:create_without_callbacks) This can be used as a...

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

makandracards.com

Chances are you're seeing the warning repeated a lot of times, maybe thousands of times. Here's how to...

Chrome allows you to throttle the Network and the CPU. Both settings are useful to measure the performance of you...

makandra dev
github.com

...local database server installations in batches. Derivative database names like foo_development and foo_test4 for foo are handled together with foo to allow for per-project whitelisting of database...

While RSpec 1 and 2 decided that specs inside spec/model are model specs, and those inside spec/features are feature specs...

Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:

makandra dev

Use this snippet by Achu from Ask Ubuntu: ping hostname.tld | while read pong; do echo "$(date): $pong"; done

github.com

FactoryBot allows a :class option to its factory definitions, to set the class to construct. However, this option is not...

makandra dev

Spreewald now has a spreewald binary that lists all available steps, optionally filtering them. Example: $> spreewald # All Spreewald steps

Recent versions of the Faker gem retrieve their strings from your locale file (e.g. config/locale/de.yml). This leads to awesome errors...

makandra dev

RSpec::Matchers.define :be_naturally_sorted do match do |array| array == array.natural_sort end end See RSpec: Where to put custom...

blog.plataformatec.com.br

...version specially created for mobiles, such as the iPhone. This specific application was entirely tested with Capybara, Steak and Selenium Webdriver. Although the test suite wasn’t the fastest one...

...in the world, the web application was very well tested, and to guarantee that we would also be testing the mobile version, we would have to simulate an iPhone user...

RSpec's be_false behaves unexpectedly: nil.should be_false # passes, as the expectation returns true If you want to check...

github.com

Adds missing native PostgreSQL data types to ActiveRecord and convenient querying extensions for ActiveRecord and Arel for Rails 4.x...

makandra dev

tmp/* storage/* db/*.sqlite3 db/schema.rb db/structure.sql public/system .project .idea/ public/javascripts/all* public/stylesheets/all* public/stylesheets/*.css config/database.yml *~ *#* .#* .DS_Store webrat-*.html

...ll need it to access shared folders or your host's web server when testing pages in IE. Fun fact: You could also use vbox.srv -- that's the corresponding hostname...

makandra dev

Spreewald 1.1.0 drops the be_true and be_false matchers in order to be RSpec 3 and Ruby 2 compatible...

stackoverflow.com

When you use ab to do some performance benchmarking, you might run into output like this: Complete requests: 200

blog.bitcrowd.net

When cucumber encounters a failing step in a @javascript feature, the selenium browser window instantly closes. Sometimes you do not...

When you want to look up a class for a given factory, do it like this: >> FactoryBot.factories.find('admin').build_class...