Skip to content

Commit

Permalink
Fixed test (for real)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmartin2 committed Mar 28, 2016
1 parent c2a81b7 commit 4e4cf16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#[macro_export]
macro_rules! mount {
($($mountpoint:expr => $handler:expr),+ $(,)*) => ( {
let mut mount = Mount::new();
let mut mount = $crate::Mount::new();
$(mount.mount($mountpoint, $handler);)*
mount
});
Expand All @@ -25,11 +25,12 @@ macro_rules! mount {
#[cfg(test)]
mod tests {
use iron::{Response, Request, IronResult};
use super::Mount;

#[test]
fn methods() {
fn handler(_: &mut Request) -> IronResult<Response> {Ok(Response::new())}
let _ = mount!("/" => handler
let _ = mount!("/" => handler,
"/foo" => handler);
}
}

0 comments on commit 4e4cf16

Please sign in to comment.