--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-04-28 14:07:08 -07:00
27 changed files with 1210 additions and 54 deletions

View File

@@ -47,23 +47,11 @@ namespace Orchard.Specs.Bindings {
descriptor.EnabledFeatures.Concat(new[] { new ShellFeature { Name = name } }),
descriptor.Parameters);
}
Trace.WriteLine("This call to Host.Reinitialize should not be needed, eventually");
MvcApplication.Host.Reinitialize_Obsolete();
});
}
[When(@"I cycle the app domain")]
public void WhenICycleTheAppDomain() {
var webApp = Binding<WebAppHosting>();
webApp.Host.Execute(() => {
Trace.WriteLine("This call to Host.Reinitialize should not be needed, eventually");
MvcApplication.Host.Reinitialize_Obsolete();
});
}
[Given(@"I have tenant ""(.*)\"" on ""(.*)\"" as ""(.*)\""")]
public void GivenIHaveTenantOnSiteAsName(string shellName, string hostName, string siteName) {
var webApp = Binding<WebAppHosting>();
@@ -76,7 +64,6 @@ namespace Orchard.Specs.Bindings {
using (var environment = MvcApplication.CreateStandaloneEnvironment("Default")) {
environment.Resolve<IShellSettingsManager>().SaveSettings(shellSettings);
}
MvcApplication.Host.Reinitialize_Obsolete();
});
webApp.WhenIGoToPathOnHost("Setup", hostName);

View File

@@ -19,6 +19,6 @@ Scenario: Edit module shows its features
Scenario: Features of installed modules are listed
Given I have installed Orchard
When I go to "admin/modules/features"
Then I should see "<h2>Available Features</h2>"
Then I should see "<h1>Manage Features</h1>"
And I should see "<h3>Common</h3>"
And the status should be 200 OK

View File

@@ -102,7 +102,7 @@ this.ScenarioSetup(scenarioInfo);
#line 21
testRunner.When("I go to \"admin/modules/features\"");
#line 22
testRunner.Then("I should see \"<h2>Available Features</h2>\"");
testRunner.Then("I should see \"<h1>Manage Features</h1>\"");
#line 23
testRunner.And("I should see \"<h3>Common</h3>\"");
#line 24

View File

@@ -79,6 +79,6 @@ Scenario: Listing tenants from command line
Given I have installed Orchard
And I have installed "Orchard.MultiTenancy"
And I have tenant "Alpha" on "example.org" as "New-site-name"
When I execute >orchard tenant list
When I execute >tenant list
Then I should see "Name: Alpha"
And I should see "Request Url Host: example.org"

View File

@@ -8,7 +8,7 @@
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Orchard.Specs
namespace Orchard.Tests
{
using TechTalk.SpecFlow;