Cucumber's docstrings let you add long strings to a step like this: # foo.feature Given this text: """ First line

I've pushed an update to Cucumber factory that simplifies working with FactoryGirl factories. Say you define a factory with...

...separate process. # You'll also benefit from code reloading. if Rails.env.development? require 'sidekiq/testing' Sidekiq::Testing.inline!

Rails includes milliseconds in Time / DateTime objects when rendering them as JSON: JSON.parse(User.last.to_json)['created_at'] #=> "2001-01-01...

Spreewald 1.4.0 comes with this step: When I click on the element ".sidebar" We recommend to define a selector_for...

github.com

Weighttp is threaded and might exhaust resources of an application better than ApacheBench or httperf. You need libev installed.

For Capybara, use this step: Then /^"([^"]*)" should be a disabled option for "([^"]*)"(?: within "([^\"]*)")?$/ do |value, field, selector| with_scope(selector...

Though nowhere to be found in the official docs, this works just fine. describe Facebook::Post do it_behaves_like...

github.com

If you have FactoryGirl traits like this: factory :movie do title 'Sunshine' year 2007 trait :vintage do year 1951

...one-sync once. It should ask you for some encfs settings; just press ENTER. Test it by putting some file into ~/sync. An encrypted version of your file should show...

makandra dev

With Rspec you can mock objects or functions, for example like this: expect(my_object).to receive(:my_function).and...

Cucumber factory supports polymorphic associations out of the box. Just keep in mind that you need to use named associations...

makandra dev
github.com

...other examples after print out the failure. I haven't tried it with parallel_tests...

blog.bitcrowd.net

To make the RSpec matcher of the authorization solution Consul work with Rspec 2.x read the following blog post...

API breakage ahoy. You need to either upgrade your Capybara or downgrade your selenium-webdriver gem. Alternatively, this could solve...

Sometimes you need complex expectations on method arguments like this SomeApi.should_receive(:find).with(:query => '*foo*', :sort => 'timestamp ASC', :limit...

Webmocks hash_including is similar to RSpec::Mocks::ArgumentMatchers#hash_including. Be aware that hash_including (webmock v3.0.1) doesn't...

Example task: Multiply the table holidays between several stages. Open two terminals: shell-for stage_1 shell-for stage_2...

...rv:|Edge\/)(\d+)/.exec(uaString); if (match) return parseInt(match[2]) } Here are the tests: describe('ieVersion()', () => { it('returns 10 for Internet Explorer 10', () => { version = up.browser.ieVersion('Mozilla/5.0 (compatible; MSIE...

Please don't use the horrible datetime_select helper. It has a terrible UI. Always prefer to use a visual...

Spreewald includes a few useful steps for debugging a Capybara session. Then show me the page # => Opens the page in...

Sometimes you want/have to send specific http(s) requests. You can do that easy with curl or just write the...

If your controller spec never reaches your controller code: Make sure you are signed in. Make sure you are actually...

makandra dev

Fixed #68: The "cucumber" command now fails early when @solo features fail. Added: The "setup" command now prints the db...