Exemplo n.º 1
0
 public void MR_262_DynamicComponents()
 {
     ViewComponentFactory.Inspect(typeof(BugsController).Assembly);
     PropertyBag["components"] = new[]
     {
         "SimpleInlineViewComponent3",
         "SimpleInlineViewComponent2"
     };
     ProcessView_StripRailsExtension("usingcomponents/DynamicComponents.rails");
     AssertReplyEqualTo("default component view picked up automaticallyThis is a view used by a component");
 }
 public void UsingEmptyComponent()
 {
     ViewComponentFactory.Inspect(typeof(SimpleInlineViewComponent3).Assembly);
     ProcessView_StripRailsExtension("happenedOnTheField/JustComponent.rails");
     // should complete succesfully
 }
Exemplo n.º 3
0
 protected override void BeforEachTest()
 {
     ViewComponentFactory.Inspect(typeof(BlockViewComponent2).Assembly);
 }
Exemplo n.º 4
0
 public void MR_371_OutputComponentInSectionTooManyTimes()
 {
     ViewComponentFactory.Inspect(typeof(BugsController).Assembly);
     ProcessView_StripRailsExtension("bugs/mr_371.rails");
     AssertReplyEqualTo("123ayende 0<br/>123ayende 1<br/>123ayende 2<br/>");
 }