Guest User

Untitled

a guest
Jun 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. ## A typical ./spec/spec_helper.rb file
  2. require 'spec'
  3.  
  4. $LOAD_PATH.unshift(File.dirname(__FILE__))
  5. $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
  6. require 'foo'
  7.  
  8. Spec::Runner.configure do |config|
  9. # Any spec-related config here
  10. end
  11.  
  12.  
  13. ## Then in your ./spec/foo_spec.rb
  14. require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
  15.  
  16. describe Foo do
  17.  
  18. end
Add Comment
Please, Sign In to add comment