mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Getting the Orchard.Specs tests back up and running
--HG-- branch : dev
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Orchard.Specs.Bindings {
|
|||||||
var webApp = Binding<WebAppHosting>();
|
var webApp = Binding<WebAppHosting>();
|
||||||
|
|
||||||
webApp.GivenIHaveACleanSiteWith(TableData(
|
webApp.GivenIHaveACleanSiteWith(TableData(
|
||||||
new { extension = "module", names = "Orchard.Setup, Orchard.Modules, Orchard.Packaging, Orchard.Themes, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.jQuery, Orchard.Tags, TinyMce" },
|
new { extension = "module", names = "Orchard.Setup, Orchard.Modules, Orchard.Packaging, Orchard.Themes, Orchard.Widgets, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.jQuery, Orchard.Tags, TinyMce" },
|
||||||
new { extension = "core", names = "Common, Dashboard, Feeds, HomePage, Navigation, Contents, ContentsLocation, PublishLater, Routable, Scheduling, Settings, Shapes, XmlRpc" },
|
new { extension = "core", names = "Common, Dashboard, Feeds, HomePage, Navigation, Contents, ContentsLocation, PublishLater, Routable, Scheduling, Settings, Shapes, XmlRpc" },
|
||||||
new { extension = "theme", names = "SafeMode, Classic" }));
|
new { extension = "theme", names = "SafeMode, Classic" }));
|
||||||
|
|
||||||
|
@@ -8,32 +8,32 @@
|
|||||||
\Windows\Microsoft.Net\Framework\v2.x\Config
|
\Windows\Microsoft.Net\Framework\v2.x\Config
|
||||||
-->
|
-->
|
||||||
<configuration>
|
<configuration>
|
||||||
<configSections>
|
<configSections>
|
||||||
<sectionGroup name="system.razor.web" type="System.Razor.Web.Configuration.SystemRazorWebSectionGroup, System.Razor.Web">
|
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor">
|
||||||
<section name="host" type="System.Razor.Web.Configuration.HostSection, System.Razor.Web" requirePermission="false" />
|
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor" requirePermission="false" />
|
||||||
<section name="pages" type="System.Razor.Web.Configuration.RazorPagesSection, System.Razor.Web" requirePermission="false" />
|
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor" requirePermission="false" />
|
||||||
</sectionGroup>
|
</sectionGroup>
|
||||||
</configSections>
|
</configSections>
|
||||||
|
|
||||||
<appSettings/>
|
<appSettings/>
|
||||||
<system.diagnostics configSource="Config\Diagnostics.config"/>
|
<system.diagnostics configSource="Config\Diagnostics.config"/>
|
||||||
|
|
||||||
<system.razor.web>
|
<system.web.webPages.razor>
|
||||||
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||||
<pages pageBaseType="Orchard.Mvc.ViewEngines.Razor.WebViewPage">
|
<pages pageBaseType="Orchard.Mvc.ViewEngines.Razor.WebViewPage">
|
||||||
<namespaces>
|
<namespaces>
|
||||||
<add namespace="System.Web.Mvc" />
|
<add namespace="System.Web.Mvc" />
|
||||||
<add namespace="System.Web.Mvc.Ajax" />
|
<add namespace="System.Web.Mvc.Ajax" />
|
||||||
<add namespace="System.Web.Mvc.Html" />
|
<add namespace="System.Web.Mvc.Html" />
|
||||||
<add namespace="System.Web.Routing" />
|
<add namespace="System.Web.Routing" />
|
||||||
<add namespace="System.Linq"/>
|
<add namespace="System.Linq"/>
|
||||||
<add namespace="System.Collections.Generic"/>
|
<add namespace="System.Collections.Generic"/>
|
||||||
<add namespace="Orchard.Mvc.Html"/>
|
<add namespace="Orchard.Mvc.Html"/>
|
||||||
</namespaces>
|
</namespaces>
|
||||||
</pages>
|
</pages>
|
||||||
</system.razor.web>
|
</system.web.webPages.razor>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Set default transaction timeout to 30 minutes so that interactive debugging
|
Set default transaction timeout to 30 minutes so that interactive debugging
|
||||||
is easier (default timeout is less than one minute)
|
is easier (default timeout is less than one minute)
|
||||||
-->
|
-->
|
||||||
|
@@ -39,7 +39,7 @@ Scenario: Some of the initial form values are required
|
|||||||
Scenario: Calling setup on a brand new install
|
Scenario: Calling setup on a brand new install
|
||||||
Given I have a clean site with
|
Given I have a clean site with
|
||||||
| extension | names |
|
| extension | names |
|
||||||
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Orchard.Modules, Orchard.jQuery, TinyMce |
|
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Orchard.Modules, Orchard.Widgets, Orchard.jQuery, TinyMce |
|
||||||
| core | Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, Shapes, XmlRpc |
|
| core | Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, Shapes, XmlRpc |
|
||||||
| theme | SafeMode, Classic |
|
| theme | SafeMode, Classic |
|
||||||
And I am on "/Setup"
|
And I am on "/Setup"
|
||||||
@@ -51,5 +51,4 @@ Scenario: Calling setup on a brand new install
|
|||||||
And I hit "Finish Setup"
|
And I hit "Finish Setup"
|
||||||
And I go to "/Default.aspx"
|
And I go to "/Default.aspx"
|
||||||
Then I should see "My Site"
|
Then I should see "My Site"
|
||||||
And I should see "Welcome"
|
And I should see "Welcome, <strong>admin</strong>!"
|
||||||
And I should see "you've successfully set-up your Orchard site"
|
|
||||||
|
10
src/Orchard.Specs/Setup.feature.cs
generated
10
src/Orchard.Specs/Setup.feature.cs
generated
@@ -1,7 +1,7 @@
|
|||||||
// ------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by SpecFlow (http://www.specflow.org/).
|
// This code was generated by SpecFlow (http://www.specflow.org/).
|
||||||
// SpecFlow Version:1.3.2.0
|
// SpecFlow Version:1.3.5.2
|
||||||
// Runtime Version:4.0.30319.1
|
// Runtime Version:4.0.30319.1
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
@@ -14,7 +14,7 @@ namespace Orchard.Specs
|
|||||||
using TechTalk.SpecFlow;
|
using TechTalk.SpecFlow;
|
||||||
|
|
||||||
|
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.5.2")]
|
||||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
[NUnit.Framework.TestFixtureAttribute()]
|
[NUnit.Framework.TestFixtureAttribute()]
|
||||||
[NUnit.Framework.DescriptionAttribute("Setup")]
|
[NUnit.Framework.DescriptionAttribute("Setup")]
|
||||||
@@ -177,7 +177,7 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
table4.AddRow(new string[] {
|
table4.AddRow(new string[] {
|
||||||
"module",
|
"module",
|
||||||
"Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Or" +
|
"Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Or" +
|
||||||
"chard.Modules, Orchard.jQuery, TinyMce"});
|
"chard.Modules, Orchard.Widgets, Orchard.jQuery, TinyMce"});
|
||||||
table4.AddRow(new string[] {
|
table4.AddRow(new string[] {
|
||||||
"core",
|
"core",
|
||||||
"Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routa" +
|
"Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routa" +
|
||||||
@@ -211,9 +211,7 @@ testRunner.And("I go to \"/Default.aspx\"");
|
|||||||
#line 53
|
#line 53
|
||||||
testRunner.Then("I should see \"My Site\"");
|
testRunner.Then("I should see \"My Site\"");
|
||||||
#line 54
|
#line 54
|
||||||
testRunner.And("I should see \"Welcome\"");
|
testRunner.And("I should see \"Welcome, <strong>admin</strong>!\"");
|
||||||
#line 55
|
|
||||||
testRunner.And("I should see \"you\'ve successfully set-up your Orchard site\"");
|
|
||||||
#line hidden
|
#line hidden
|
||||||
testRunner.CollectScenarioErrors();
|
testRunner.CollectScenarioErrors();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user