RSpec and Rails Features
Learn more about the test file and the test file's features in the test.
The project_spec.rb
file uses four basic RSpec and Rails features:
- It requires
rails_helper
. - It defines a test suite with
RSpec.describe
. - It creates an RSpec example with
it
. - It specifies a particular state with
expect
.
Here we can see spec/models/project_spec.rb
file:
Get hands-on with 1400+ tech skills courses.