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
| diff --git a/lib/minitest/spec.rb b/lib/minitest/spec.rb | |
| index 40b5e6a..c5b334d 100644 | |
| --- a/lib/minitest/spec.rb | |
| +++ b/lib/minitest/spec.rb | |
| @@ -22,6 +22,25 @@ module Kernel # :nodoc: | |
| ## | |
| # Describe a series of expectations for a given target +desc+. | |
| # | |
| + # You can describe your test by passing the object under test: | |
| + # |
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
| namespace :docs do | |
| desc "Updates the documentation on the gh-pages branch" | |
| task :update do | |
| branch = `git symbolic-ref --short HEAD`.chomp | |
| if "master" != branch | |
| puts "You are on the #{branch} branch. You must be on the master branch to run this rake task." | |
| exit | |
| end | |
| require_relative "../lib/my_gem/version.rb" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| namespace :db do | |
| namespace :fixtures do | |
| desc "Dumps the current environment's database into fixtures (uses FIXTURES_PATH)" | |
| task dump: :environment do | |
| Rails.application.eager_load! | |
| models = ApplicationRecord.descendants.reject { |model| model.primary_key.nil? } | |
| fixture_files = ENV["FIXTURES"].to_s.split(",") | |
| if fixture_files.any? |
OlderNewer