doc/src/tools/rails.page in rspec-0.5.6 vs doc/src/tools/rails.page in rspec-0.5.7

- old
+ new

@@ -13,15 +13,17 @@ * Special generators for models and controllers that generate specs instead of tests. h3. Installation RSpec support for rails lives in a separate gem. Install that gem: + <pre> gem install rspec_generator </pre> Once the gem is installed, you must configure you Rails app. Stand in the root of your Rails app and run: + <pre> ruby script/generate rspec </pre> Now, you can generate models and controllers in a similar fashion to Rails' builtin generators. Example: @@ -38,20 +40,29 @@ For more information on each generator, just run them without any arguments. h3. Running specs +All specs can be run with + +<pre> +rake spec +</pre> + Model specs can be run with + <pre> rake spec:models </pre> Controller specs can be run with + <pre> rake spec:controllers </pre> To see all the RSpec related tasks, run + <pre> rake --tasks spec </pre> h3. Naming conventions