Skip to content

Instantly share code, notes, and snippets.

@jacksy40
jacksy40 / instructions.md
Last active August 29, 2015 14:18
Capybara/RSpec/Poltergeist. How to run javascript in your test suite.

install phantomjs

brew install phantomjs

Gemfile:

group :test do
  gem 'poltergeist'
 gem 'database_cleaner'
@jacksy40
jacksy40 / deaf_grandma
Last active August 29, 2015 14:10
Deaf Grandma
#grandma excercise
puts ' Hi grandchild how are you? '
while true
response = gets.chomp
if response == 'BYE'
break
end
if response == response.upcase