# 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 }
Code Example |
---|
Ruby :: ruby iterate over array |
Ruby :: ruby each with index |
Ruby :: ruby read file |
Ruby :: run a specific migration rails |
Ruby :: ruby array has element |
Ruby :: head in rails |
Ruby :: ruby check if a file exists |
Ruby :: ruby case when multiple conditions |
Ruby :: ruby find index of element in array |
Ruby :: how to destroy a migration in rails |
Ruby :: ruby get decimal |
Ruby :: ruby timestamp |
Ruby :: how to add to an array ruby |
Ruby :: uper case in ruby |
Ruby :: rails rescue puts error |
Ruby :: link to do rails |
Ruby :: rails add index specifc name |
Ruby :: ruby delete first element of array |
Ruby :: string to hash ruby |
Ruby :: how works httparty ruby |
Ruby :: ruby random number between |
Ruby :: rails sendgrid setup |
Ruby :: ! in ruby |
Ruby :: how to unloack user devise rails |
Ruby :: ruby bundler load error |
Ruby :: stringio original_filename |
Ruby :: Ruby exclude from slice |
Ruby :: apple calendar gem in rails |
Ruby :: rails list down attributes of model |
R :: r ggplot regression line |