Ror using RSPEC test project

Source: Internet
Author: User

Rspec-rails Installing dependent libraries

> VI gemfile:

Gem ' Rspec-rails '

The wording of the specification:

Group:d evelopment,: Test do
    ...
    Gem ' rspec-rails ' ...
End

> bundler Install:

Using Rspec-support 3.5.0
using Rspec-core 3.5.1 using rspec-expectations 3.5.0
using Rspec-mocks 3.5.0
Using rspec-rails 3.5.1
> Rails generate Rspec:install:
      Create  . RSpec
      Create  spec
      Create  spec/spec_helper.rb
      Create  Spec/rails_ Helper.rb

Generate the RSpec folder. > Rake Spec:

/users/doctorq/.rvm/rubies/ruby-2.3.0/bin/ruby-i/users/doctorq/.rvm/gems/ruby-2.3.0@global/gems/ rspec-core-3.5.1/lib:/users/doctorq/.rvm/gems/ruby-2.3.0@global/gems/rspec-support-3.5.0/lib/users/doctorq/. Rvm/gems/ruby-2.3.0@global/gems/rspec-core-3.5.1/exe/rspec--pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
No Examples found.


Finished in 0.00038 seconds (Files took 0.11575 seconds to load)
0 examples, 0 failures

Execute the use case. Writing Use Cases

> Rails Generate Rspec:model article

Create  SPEC/MODELS/ARTICLE_SPEC.RB

A use case file was created

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.