This will get you going with the latest version of rbenv and make it easy to fork and contribute any changes back upstream.
-
Check out rbenv into
~/.rbenv
.$ cd $ git clone git://github.com/sstephenson/rbenv.git .rbenv
$(document).ready(function(){ | |
$(document).keydown(function(event){ | |
switch(event.which){ | |
case 13: | |
alert("enter"); | |
break; | |
case 39: | |
alert("right-arrow"); | |
break; | |
case 37: |
You will create a Ruby on Rails app with an admin interface from where logged in users would be able to list, create, edit and delete restaurants.
Please use your own judgment to build the appropiate database structure and models relationships. In the same way, feel free to use any gem that would help you to DRY.
We are interested in evaluating the approach/process you take to build this app in all the involved aspects (management, concept, development, deployment) as well as the best practices applied using technologies such as Ruby, Rails, Git etc.
MongoMapper::Railtie.class_eval do | |
config.action_dispatch.rescue_responses.merge!( | |
'MongoMapper::DocumentNotFound' => :not_found | |
) | |
end |
class Tellez | |
def self.birthday? | |
Time.now.day == 23 && Time.now.month == 4 | |
end | |
end | |
puts "Happy B-day Téllez!" if Tellez.birthday? |
// Before page object | |
test('sign up', function() { | |
expect(1); | |
visit('/sign-up'); | |
fillIn('#signup-form #name', 'John Doe'); | |
fillIn('#signup-form #email', '[email protected]'); | |
fillIn('#signup-form #password', '1234567890'); | |
click('#signup-form #submit'); |
// After page object | |
const pageObject = PO.build({ | |
visit: PO.visitable('/sign-up'), | |
name: PO.fillable('#signup-form #name'), | |
email: PO.fillable('#signup-form #email'), | |
password: PO.fillable('#signup-form #password'), | |
submit: PO.clickable('#signup-form #submit') | |
}); | |
test('sign up', function() { |
/** | |
Markup example: | |
<label for="name">Name</label> | |
<input id="name" type="text" data-tests="signup-name"/> | |
... | |
**/ | |
const pageObject = PO.build({ | |
visit: PO.visitable('/sign-up'), | |
name: PO.fillable('[data-tests="signup-name"]'), |