module Turnip::RSpec::Loader
Public Instance Methods
load(*a, &b)
click to toggle source
Calls superclass method
# File lib/rutabaga/no_turnip.rb, line 13 def load(*a, &b) if a.first.end_with?('.feature') ::RSpec.warning "Calling features directly has been disabled by rutabaga. To re-enable, do not require rutabaga/no_turnip." else super end end
Private Instance Methods
legal_directories()
click to toggle source
# File lib/rutabaga/turnip.rb, line 27 def legal_directories @legal_directories ||= ::RSpec.configuration.pattern.split(',') .select {|p| /\.feature\Z/ =~ p} .map {|d| Dir.glob(File.join(::RSpec.configuration.default_path,d)) } .flatten end