module CCK::Examples
def feature_code_for(example_name)
i.e. 'attachments' would return the fully qualified path to the attachments folder
Return the path for a specific example scenario based on its name
def feature_code_for(example_name) path = File.join(cck_features_folder_location, example_name) return path if File.directory?(path) raise ArgumentError, "No feature code directory found in gem for CCK example: #{example_name}" end