forked from codeforamerica/CutePets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rake so tests can be run and heroku can create a tweet
- Loading branch information
Erica Kwan
committed
Sep 17, 2014
1 parent
9330de7
commit b5704cb
Showing
4 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ ruby '2.1.2' | |
gem 'twitter' | ||
gem 'dotenv' | ||
gem 'hpricot' | ||
gem 'rake' | ||
|
||
group :test do | ||
gem 'minitest' | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require 'rake/testtask' | ||
require './lib/cute_pets' | ||
|
||
Rake::TestTask.new do |t| | ||
t.pattern = 'spec/*_spec.rb' | ||
end | ||
|
||
desc 'Tweet random pet.' | ||
task :tweet_pet do | ||
CutePets.post_pet | ||
end | ||
|
||
task default: 'test' |
This file contains 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