Skip to content

a selection of ruby quizzes for sharpening your ruby chops

Notifications You must be signed in to change notification settings

watermelonexpress/ruby-quizzes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Quiz
---------

A list of ruby problems to go along with the Best Of Ruby Quiz book.  You should do these examples in a TDD style using RSpec.  Write the tests first.

To submit your solutions, please push to your own branch.

To Set up Rspec:

gem install rspec
gem install rspec-core

To run the tests:

bundle exec rspec spec/madlib_spec.rb # where madlib is the example you are working on


Quiz 1: Madlibs
---------------

Madlibs game.  Given a string like "Our favorite lanuage is also a ((gemstone))", your program should ask the user questions such as:  Please give me a gemstone.  It should display the results
which replace the placeholders with the user's answer.  You should provide a method which returns a string: "Our favorite language is also a ruby"

About

a selection of ruby quizzes for sharpening your ruby chops

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages