Ruby5 #410
Ruby5 - Episode #410 - October 11th, 2013
- Pain-free Testing
- Don’t Use Cucumber
- Use Page Objects (capybara)
- Create Useful Failure Messages
- Embrace Asynchronous Testing
- Get Serious About Data Building
- FactoryGirl (after(:create) do |workflow, evaluator|)
- Prefer Refining Existing Tests Over Creating New Ones
- Random Ruby
- rand(1.5..2.8)
- srand(333)
- rng = Random.new
- RealRand is a wrapper for 3 genuine random number generator
- services
- random.org
- HotBits
- EntropyPool and Entropy Filter
- reactive_record
- Generates ActiveRecord models to fit a pre-existing Postgres database
- legacy schema
- Capistrano v3
- Capistrano’s Rake-like DSL has been replaced with Rake itself
- behind the scenes SSHKit
- Framework specific tasks have been broken out into separate gems
gem 'capistrano', '~> 3.0.0'
gem 'capistrano-rails'
- Multistage by default
$ cap install STAGES=sandbox,qa,production
- Hot is the New Cold
- Dry Runnings
- Rolling Restarts
- Log Levels and Formatters
- Ask — don’t tell
ask :branch, ‘my_default_branch’
- Please enter branch: |my_default_branch|
- Capistrano’s Rake-like DSL has been replaced with Rake itself
- Wicked 1.0.1
- version 1.0.1 immediately a serious security bug was patched
- Heroku WebSockets
$ heroku labs:enable websockets -a myapp
- the DNS record for your herokuapp.com domain is updated to point at a WebSocket-capable endpoint
♫ Frank Black - Bad Wicked World
by SoundHound