Skip to content

Commit

Permalink
BlockParticipant: OK with "rescue => e"
Browse files Browse the repository at this point in the history
rufus-treechecker 1.0.7 doesn't choke on it anymore

closes gh-30
  • Loading branch information
jmettraux committed Jul 31, 2011
1 parent 9f20d74 commit bc56200
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ruote.gemspec
Expand Up @@ -32,7 +32,7 @@ ruote is an open source Ruby workflow engine
s.add_runtime_dependency 'rufus-dollar', '>= 1.0.4'
s.add_runtime_dependency 'rufus-mnemo', '>= 1.1.0'
s.add_runtime_dependency 'rufus-scheduler', '>= 2.0.9'
s.add_runtime_dependency 'rufus-treechecker', '>= 1.0.6'
s.add_runtime_dependency 'rufus-treechecker', '>= 1.0.7'

s.add_development_dependency 'rake'
s.add_development_dependency 'json'
Expand Down
13 changes: 13 additions & 0 deletions test/functional/ft_24_block_participant.rb
Expand Up @@ -116,6 +116,19 @@ def test_raise_security_error_upon_registering_rogue_block_participant
end
end

# cf https://github.com/jmettraux/ruote/issues/30
#
def test_begin_rescue_end

@engine.register 'rogue' do |workitem|
begin
rescue => e
end
end

assert true
end

def test_on_cancel_registration

@engine.register 'nemo',
Expand Down

0 comments on commit bc56200

Please sign in to comment.