Permalink
Browse files

Updates the mailroutes spec to understand the implicit mail_ prefix f…

…or any mailroutes-generated event name
  • Loading branch information...
1 parent 705844d commit 94179511c6454fbe6ade432a181b2f32a239687d @sgrove committed Dec 21, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/gem_spec/mail_route_spec.rb
@@ -77,9 +77,9 @@ def params
it 'should allow for composable rules in any order' do
Bushido::Mailroute.map do |mapper|
mapper.route('test-call-back') {
- mapper.body('event on {:day}', {:day => mapper.word })
- mapper.body('at {:time}', {:time => mapper.ampm })
- mapper.body('meet at {:place}', {:place => mapper.words_and_spaces })
+ mapper.body('event on {:day}', {:day => mapper.word })
+ mapper.body('at {:time}', {:time => mapper.ampm })
+ mapper.body('meet at {:place}', {:place => mapper.words_and_spaces })
}
end
@@ -152,7 +152,7 @@ def params
end
it "should fire the callback when finding a successful route" do
- Bushido::Data.should_receive(:fire).with(instance_of(Hash), 'example-callback')
+ Bushido::Data.should_receive(:fire).with(instance_of(Hash), 'mail_example-callback')
routes.process(@reply_email)
end

0 comments on commit 9417951

Please sign in to comment.