Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## A typical ./spec/spec_helper.rb file
- require 'spec'
- $LOAD_PATH.unshift(File.dirname(__FILE__))
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
- require 'foo'
- Spec::Runner.configure do |config|
- # Any spec-related config here
- end
- ## Then in your ./spec/foo_spec.rb
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
- describe Foo do
- end
Add Comment
Please, Sign In to add comment