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...
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...
...users affected by this should be zero (it was neither in the documentation nor tested). Users may now add custom error classes and error message xpaths to the Spreewald configuration...
...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...
Fixed #68: The "cucumber" command now fails early when @solo features fail. Added: The "setup" command now prints the db...
This is what worked for me in a Rails 4: # JSON data as first argument, then parameters patch :update, { some...
You either have an old version of Mocha and an edge version of Rails 3.2, or you have a new...
Show failing specs instantly. Show passing spec as green dots as usual. Configuration: # spec/spec.opts (.rspec for rspec 2) --require rspec/instafail...
Now supports RSpec 3 and Rails 4 Drops support for state_machine, which has some issues with Rails 4 and...
Since Ruby 3.2.0 you can measure coverage support for eval statements and support has been added for the simplecov gem...
You can use CSS attribute selectors in your step definitions like this: Then /^the page should have a meta description...
Take care when trying to set attributes to nil in a blueprint. Given the following master blueprint: Story.blueprint do
When you regularly make use of Cucumber's "show me the page" step (or let pages pop up as errors...
RSpec supports a one-liner syntax for setting an expectation on the subject: describe Array do describe "when first created...
...the best practice to hide background tasks behind a single static methods you can test, this is probably preferable to defining additional Rake tasks. Unfortunately when whenever register a runner...
To only run a single describe/context block in a long spec, you can say spec spec/models/note_spec.rb:545 ... where the describe...
Unfortunately, by default plugin tests are pretty bland. They use the plain unit test suite supplied by Ruby, and not any of the extended Rails test framework. This will leave...
...our plugin’s test classes with no access to fixtures, database.yml configuration, or any of those nice class auto-loading features...
One really simple way to check whether JavaScript Sentry integration was successful (raven-js or @sentry/browser), is to create an...