Skip to content

Instantly share code, notes, and snippets.

@stevenharman
Created May 15, 2009 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenharman/112415 to your computer and use it in GitHub Desktop.
Save stevenharman/112415 to your computer and use it in GitHub Desktop.
public class when_requesting_a_custom_logo_and_none_is_configured : concerns<CustomizationController>
{
private readonly Type NotFoundException = typeof (HttpException);
private CustomizationController _controller;
protected override void Context()
{
Dependency<IConfigureTheApplication>().Stub(i => i.Logo).Return(null);
_controller = BuildUp();
}
[Specification]
public void return_a_404_error()
{
NotFoundException.ShouldBeThrownBy(() => _controller.Logo());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment