Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update session2.md #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion open_camp/session2.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ We'll use a popular Ruby testing framework called, Rspec. Here's how to configur

\#1. Rspec sets the Rails environment to "test". Therefore, we are using the test database, and __not__ the development database (rememeber seeing these in the database.yml file?). __See line 1__, ````ENV["RAILS_ENV"] ||= 'test'````

\#2. Each test file must be end with , ````spec.rb````. For example, ````task_spec.rb````. __See Line 7__, ````Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }````.
\#2. Each test file must be end with , ````spec.rb````. For example, ````task_spec.rb````. __See Line 7__ or Line 9, ````Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }````.


2. Create a folder and a test file,
Expand Down