Skip to content

Instantly share code, notes, and snippets.

View seanmarcia's full-sized avatar
🐼
Happily living the dream.

Sean Marcia seanmarcia

🐼
Happily living the dream.
View GitHub Profile

Capybara

save_and_open_page

Matchers

have_button(locator)
@seanmarcia
seanmarcia / migrate_s3.rake
Created August 17, 2012 19:23
rake task to migrate paperclip attachments to Amazon S3
namespace :attachments do
task :migrate_to_s3 => :environment do
require 'aws/s3'
# Load credentials
s3_options = YAML.load_file(File.join(Rails.root, 'config/s3.yml')).symbolize_keys
bucket = s3_options[:bucket_name]
# Establish S3 connection