pestilence - Some nasty tricks.
splinter - Additional syntactic sugar for Capybara and .
…example, needed to work around changes in Capybara, is to pull the XPath and Capybara libraries directly from the latest master branches on GitHub, which introduces a significant risk of instability. And there are surely other examples ready to surprise the unwary.
Once the situation has stabilized a bit, I plan to make a short supplementary screencast highlighting the relevant changes and showing how the sample app works with Rails 4. When that happens, I will make sales of the Rails…
Vienna 3 - 10 version of my currently-favorite feed reader.
Rapidash - core for building APIs.
Vagrant 1.1, - Fusion atop has been released.
Alfred v2 Primer: Getting Started With - I've been running the beta version of this now-released automation software for a while, and it's quite slick. 2
Bring - We do love our test tools. VCR to testing with Capybara and puffing-billy
Behind the scenes, Capybara will retry finding the content if it's not yet present.
1 2 3 4 Favorite . count . should == 0 click_link ( "Add to favorites" ) page . should have_content ( "Added to favorites" ) Favorite . count . should == 1
And that test will fail, because Capybara will not know to …
…blacklist support, improved fuller list on .console messages, and compatibility with the lovely Capybara 2.0. You can see a full list and a
With this release, we're also dropping support for4.7 and Capybara 1.x.
If you've tried capybara-webkit in the past and had trouble with crashes or freezing up, give the latest release a shot. If you're already happily using it, upgrade anyway for a faster, more reliable experience.
When it comes to authorization, pundit is the latest gem from Jonas Nicklas (author of and Capybara) with some interesting ideas that you might like. Pundit uses code conventions along with a plain old to make for a very simple implementation. First, write a policy for each type of model you wish to authorize:' gem is the 800 lb gorilla that most apps use.
class PostPolicy < Struct . new ( :user , :post ) def create? user. admin ? or not post. published ? end end
Thank you to Jonas Nicklas for Capybara, a big step forward in browser simulation and acceptance testing.
Thank you to Bill Joy, Bram Moolenaar, and Tim Pope for making and improving Vim, our beloved text editor.
Thank you to the many Postgres committers for a rock-solid …
of the core team talks about the new Capybara 2.0 release and what you need to be aware of when using it with RSpec and .
demonstrates why he thinks class methods are much trickier to refactor than instance methods.
Reference as for Refactoring
A quick look at using graphs of references in order …
One of the most obvious ways your website can be attacked is through a form being maliciously tampered with.
To cover this scenario in integration tests, using Capybara, it is possible to manually set the value of a field (even if it is a hidden field) with the following: find("#your_field_id").set "malicious_value"
Following on from Chris' screencast showing the simplest , I recorded a screencast showing the simplest Cucumber web testing project ever. In just five minutes, I'll show you how to use Capybara to drive a simple project ever web search from a Cucumber scenario.
If you're looking to get started using Cucumber to test any kind of web application, this is a great introduction.