RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

croaky — 21 posts

http://dancroak.com

Rails has built-in support for outgoing mail with ActionMailer, but nothing on the omakase menu resembles handling incoming mail. To help with that, today we’re happy to release Griddler, hot off the… ahem… presses.
./bin/setup convention  robots.thoughtbot.com
A developer should be able to clone the project and run a single, consistent, reliable command to start contributing.
We've seen lots of Rails app test suites that use WebMock to disable HTTP requests. There is also good tools like VCR and techniques like Fakes available for other HTTP requests made from Ruby.

However, modern apps often make HTTP requests to external services from Javascript. We often use services like KISSMetrics, Stripe, Github, LinkedIn, or Facebook from client-side Javascript.

When we use a Capybara driver like Capybara Webkit or Poltergeist, those HTTP requests are no longer stubbed. This post shows how to re-use the Ruby Fakes (written in Sinatra) from the Capybara-with-Javascript-driver acceptance test environment.
Updated an old post to reflect some thoughts on locking gem versions in the Gemfile.
Decorators vs. other patterns  robots.thoughtbot.com
What’s the difference between a decorator and a strategy, composite, and presenter? Giant Robots Smashing Into Other Giant Robots tells all.
There's a single method in your Cucumber suite right now that could silently allow regressions and ambiguity to slip in without you ever knowing. Do you know what it is?
How do you test your gems across multiple versions of its dependencies (like Rails or Capybara)? Try thoughtbot's Appraisal gem.
Factory Girl's new look  robots.thoughtbot.com
Factory Girl release candidates were cut this week. There's a great-looking new syntax and many new conveniences.
Copycopter Client  copycopter.com
thoughtbot open sourced copycopter_client a few minutes ago. It's the client library to a corresponding service for editing copy in your live Rails app.
Twiddle Wakka  robots.thoughtbot.com
Do you know the Twiddle Wakka? I thought this was one of the more interesting things I took away from Rubyconf via Jeremy Hinegardner's Anthropology of Ruby talk.
Many people think of Shoulda as a context framework for Ruby tests. It's really two libraries, however. One is a context framework and the other is a set of Rails matchers that only depend on Ruby. This means they can be used in any testing framework (Test::Unit, RSpec, whatever). This post has more details, including how to write your own matchers.
always remember me  robots.thoughtbot.com
Clearance now uses only cookies with a long expiration.
Assuming people using shared computers can't remember to log out is insulting at best and annoying to everyone else that has exclusive access.
Someone recently asked thoughtbot to do “vim on Rails” screencasts. So, we're responding with this experiment. Let us know what you want to see and we'll try to improve things the next time around.
We found a UI edge case that was not as "edge" as we thought: already confirmed users re-clicking their confirmation link. As a result, we altered the underlying library to improve user experience.
Analysis paralysis: access control is an article exploring custom authorization ("access control") in your Rails app using techniques you already know: ActiveRecord associations and finders, current_user. Inherited Resources is also on display to minimize mistakes and keep code standard and clean.
HIGH VOLTAGE  robots.thoughtbot.com
HIGH VOLTAGE is a new Rails engine from thoughtbot for static pages.
Spy vs. Spy - Test Spies  giantrobots.thoughtbot.com
Test Spies make isolation testing easier & maintain the same four-phase test order as unmocked tests.
Open source slides with Slidedown  giantrobots.thoughtbot.com
Have too many slideshows in your organization? Have a jones for open source tools? Text files? Git? Same here. Give Slidedown a whirl.
Rumblestiltskin  rumblestiltskin.heroku.com
Registration is open this week for the 2009 Rails Rumble. So start talking ideas and finding teammates at Rumblestiltskin and try to win the Rails Rumble championship belt sponsored by thoughtbot.
Use Shoulda matchers inside RSpec  giantrobots.thoughtbot.com
The latest version of Shoulda works with RSpec. Check out the announcement blog posts for ActiveRecord matchers (last month) and ActionController matchers (today).
Using Umbrella Today? as a case study, thoughtbot will provide Advanced Rails training at Rockefeller Center, NYC on Friday, December 5th. Topics covered include Rails best practice patterns, refactoring with confidence, Test Driven Development with ease, and contributing back to the community with plugins and gems.