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...

Usually, Cucumber feature files live in features/. When you group them in sub directories, make sure to add -r features...

makandra dev
github.com

...description: "Plain White Tee Shirt", name: "Plain T-Shirt" } ]) User.create!([ { password: "123456", username: "test_1" }, { password: "234567", username: "test...

At least Selenium cannot find disabled fields. Unless you find them explicitly: find_field 'This is disabled', disabled: true

jashkenas.github.com

...JavaScript libraries (jQuery, PrototypeJS), debugging support (it becomes pure, readable JavaScript), existing support from test suites (it’s normal JavaScript) and growing support from various text editors (TextMate, Vim, Emacs...

When you write a custom RSpec matcher a good place to store them is to create one file per matcher...