Created
May 15, 2009 20:21
-
-
Save stevenharman/112415 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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