Skip to content

Commit

Permalink
Add rake so tests can be run and heroku can create a tweet
Browse files Browse the repository at this point in the history
  • Loading branch information
Erica Kwan committed Sep 17, 2014
1 parent 9330de7 commit b5704cb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ruby '2.1.2'
gem 'twitter'
gem 'dotenv'
gem 'hpricot'
gem 'rake'

group :test do
gem 'minitest'
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ GEM
minitest (5.4.1)
multipart-post (2.0.0)
naught (1.0.0)
rake (10.3.2)
safe_yaml (1.0.3)
simple_oauth (0.2.0)
thread_safe (0.3.4)
Expand All @@ -47,6 +48,7 @@ DEPENDENCIES
dotenv
hpricot
minitest
rake
twitter
vcr
webmock
13 changes: 13 additions & 0 deletions Rakefile
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'
4 changes: 2 additions & 2 deletions lib/cute_pets.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'cute_pets/pet_fetcher'
require 'cute_pets/tweet_generator'
require './lib/cute_pets/pet_fetcher'
require './lib/cute_pets/tweet_generator'
require 'dotenv'
Dotenv.load

Expand Down

0 comments on commit b5704cb

Please sign in to comment.