Created
December 10, 2013 09:41
-
-
Save teohm/7888109 to your computer and use it in GitHub Desktop.
rspec
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
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) | |
$LOAD_PATH.unshift(File.dirname(__FILE__)) | |
require 'rspec' | |
# Requires supporting files with custom matchers and macros, etc, | |
# in ./support/ and its subdirectories. | |
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} | |
module FixtureSupport | |
def fixture_path | |
RSpec.configuration.fixture_path | |
end | |
end | |
RSpec.configure do |config| | |
config.add_setting :fixture_path | |
config.fixture_path = File.join(File.dirname(__FILE__), 'fixtures') | |
config.include FixtureSupport | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment