Imagine I have routes like this:
resource :users do
resource :projects
do
project.rb
...
belongs_to :users
...
user.rb
...
has_many :projects
...
If I wanted to create rspec tests for Project, would I test Project by itself without User? In theory there would never be a Project without a User, since a User creates a Project. Something like this:
project_spec.rb
...
it "is created by a user"
...
or
user_spec.rb
...
it "create a project"
...
And if I wanted to make a test for User creating Project would I do it in the user_spec, or in project_spec? Or both?