Skip to content

Commit

Permalink
fix build on 1.9.3 and rbx
Browse files Browse the repository at this point in the history
  • Loading branch information
zenhob committed Apr 21, 2014
1 parent d3a4764 commit 065d082
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
source "https://rubygems.org"
gemspec
gem 'byebug', group:['test','development']
gem 'ronn', group:['development']
# XXX this is dumb but it's crazy hard to get platform specfic deps into a gemspec
gem 'byebug', group:['test','development'], platform:'ruby_20'
gem 'rubysl-abbrev', platform:'rbx'
gem 'rubysl-singleton', platform:'rbx'
gem 'rubysl-rexml', platform:'rbx'
Expand Down
2 changes: 0 additions & 2 deletions test/command_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,13 @@ def test_start
end

def test_stop
entry = stub
register_uri(:get, '/daily', {day_entries:[{id:123,notes:'',hours:1,client:nil,project:nil,timer_started_at:DateTime.now}]})
register_uri(:post, '/daily/update/123', {day_entry:{notes:'all done'}})
register_uri(:get, '/daily/timer/123')
stop 'all done'
end

def test_stop_yesterday
entry = stub
yesterday = (DateTime.now - 1).strftime("%3j")
register_uri(:get, '/daily', {day_entries:[]})
register_uri(:get, "/daily/#{yesterday}/2014", {day_entries:[{id:321,notes:'',hours:1,client:nil,project:nil,timer_started_at:DateTime.now}]})
Expand Down

0 comments on commit 065d082

Please sign in to comment.