Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
# This file is copied to ~/spec when you run 'ruby script/generate rspec' # from the project root directory. ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require 'spec/rails' def should_render(method_name, params = {}) specify "#{method_name.to_s} should render" do get method_name, params begin response.should be_success rescue Exception => e puts response.body raise e end end end
This paste will be private.
From the Design Piracy series on my blog: