To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorMailer generator spec
- Scenarios
-
- Mailer generator
-
- When
-
I run
bundle exec rails generate mailer posts index show
- Then
- the features should pass
- Then
-
the output should contain:
create app/mailers/posts_mailer.rb invoke erb create app/views/posts_mailer create app/views/posts_mailer/index.text.erb create app/views/posts_mailer/index.html.erb create app/views/posts_mailer/show.text.erb create app/views/posts_mailer/show.html.erb invoke rspec create spec/mailers/posts_spec.rb create spec/fixtures/posts/index create spec/fixtures/posts/show create spec/mailers/previews/posts_preview.rb
- Mailer generator with customized `default-path`
-
- Given
-
a file named ".rspec" with:
--default-path behaviour
- And
-
I run
bundle exec rails generate mailer posts index show
- Then
- the features should pass
- Then
-
the output should contain:
create app/mailers/posts_mailer.rb invoke erb create app/views/posts_mailer create app/views/posts_mailer/index.text.erb create app/views/posts_mailer/index.html.erb create app/views/posts_mailer/show.text.erb create app/views/posts_mailer/show.html.erb invoke rspec create behaviour/mailers/posts_spec.rb create behaviour/fixtures/posts/index create behaviour/fixtures/posts/show create behaviour/mailers/previews/posts_preview.rb
Last published 4 months ago by Jon Rowe.