- 
      
- 
        Save nandooliveira/4be914d2ff9d0f6ae21bf52cde30c8dd to your computer and use it in GitHub Desktop. 
    Using RSpec without Rails
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | gem install rspec | |
| gem install rspec-expectations | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | rspec --init | |
| # it creates | |
| # .rspec | |
| # spec/spec_helper.rb | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # spec/features/mytest_spec.rb | |
| RSpec.describe "Mytest", :type => :request do | |
| describe "check smth" do | |
| it "should be eq" do | |
| expect(3).to eq(3) | |
| end | |
| end | |
| end | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | rspec spec/features/mytest_spec.rb | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment