Mention spec/acceptance (for RSpec) in README

This commit is contained in:
Jo Liss 2011-03-04 14:32:26 +01:00
parent 74521456af
commit e1ba3c4dfb
1 changed files with 5 additions and 4 deletions

View File

@ -105,10 +105,11 @@ Capybara is only included for examples with <tt>:type => :request</tt> (or
<tt>:acceptance</tt> for compatibility).
Note that if you use the <tt>rspec-rails</tt> gem, <tt>:type => :request</tt>
is automatically set on all files under <tt>spec/requests</tt> (and also
<tt>spec/integration</tt>), so that's a good directory to place your Capybara specs
in. <tt>rspec-rails</tt> will also automatically include Capybara in
<tt>:controller</tt> and <tt>:mailer</tt> examples.
is automatically set on all files under <tt>spec/requests</tt> (and,
synonymously, <tt>spec/integration</tt> and <tt>spec/acceptance</tt>), so
that's a good directory to place your Capybara specs in. <tt>rspec-rails</tt>
will also automatically include Capybara in <tt>:controller</tt> and
<tt>:mailer</tt> examples.
RSpec's metadata feature can be used to switch to a different driver. Use
<tt>:js => true</tt> to switch to the javascript driver, or provide a