| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
To work through the first exercise, follow this process
Failures:
1) the hello function says hello
Failure/Error: expect(hello).to eq("Hello!")
NameError:
undefined local variable or method `hello' for #<RSpec::ExampleGroups::TheHelloFunction:0x007fa1221408f0>
# ./00_hello/hello_spec.rb:106:in `block (2 levels) in <top (required)>'
Basically, this is "error-driven development"... you'll keep running tests, hitting error messages, fixing those messages, running more tests... It is meant to not only test your Ruby skills but also get you comfortable seeing big scary looking stack traces and error messages. Most of the development you do at first will be just like this. In fact, most of all development is error-driven. So get comfortable with it!
Don't name any of your directories with spaces in them! It will give you horribly frustrating error messages and code hates dealing with spaces. For instance:
# BAD:
/Documents/My Homework/ruby
# GOOD:
/Documents/my_homework/ruby
This is forked from https://github.com/alexch/learn_ruby, its original creator.
| Back | FazBrowse Home | New Git URL |