Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rspec add support folder to gem

# Make a director called spec/support
# Add the following line (GEM or Rails) to spec/spec_helper.rb

# Rspec support folder to GEM project
Dir['./spec/support/**/*.rb'].sort.each { |f| require f }

# Rspec support folder to Rails project
Dir[Rails.root.join('spec/support/**/*.rb')].sort.each { |f| require f }
Source by github.com #
 
PREVIOUS NEXT
Tagged: #rspec #add #support #folder #gem
ADD COMMENT
Topic
Name
7+8 =