Skip to content

Commit

Permalink
Make travis work
Browse files Browse the repository at this point in the history
  • Loading branch information
alagu committed Aug 23, 2013
1 parent 667a7d2 commit eeb8e2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,14 @@ def jekyll_post_object(path, file)
end

def create_post(title, content)
repo = Grit::Repo.new @path
puts "TRAVIS CREATE POST = " + repo.log.first.message
post 'save-post', :method => 'put', :post =>
{ :title => title ,
:content => content}

puts "TRAVIS CREATE POST DONE = " + repo.log.first.message

post_date = (Time.now).strftime("%Y-%m-%d")
(post_date + " " + title).to_url + '.md'
end
Expand Down

0 comments on commit eeb8e2c

Please sign in to comment.