Updated some of the MultiTenancy SpecFlow tests

Need to add more to cover database preconfiguration

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-05-13 14:57:45 -07:00
parent 0a9570a51e
commit 3b630c4f15
3 changed files with 4 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ Scenario: A new tenant with preconfigured database goes to the setup screen
| name | value |
| Name | Scott |
| RequestUrlHost | scott.example.org |
| DatabaseOptions | True |
| DataProvider | SQLite |
And I hit "Save"
And I am redirected
And I go to "/Setup" on host scott.example.org

View File

@@ -225,8 +225,8 @@ this.ScenarioSetup(scenarioInfo);
"RequestUrlHost",
"scott.example.org"});
table4.AddRow(new string[] {
"DatabaseOptions",
"True"});
"DataProvider",
"SQLite"});
#line 63
testRunner.And("I fill in", ((string)(null)), table4);
#line 68

View File

@@ -51,7 +51,7 @@ namespace Orchard.Setup.Controllers {
public ActionResult Index() {
var initialSettings = _setupService.Prime();
return IndexViewResult(new SetupViewModel { AdminUsername = "admin", DatabaseIsPreconfigured = !(string.IsNullOrEmpty(initialSettings.DataProvider) || string.Equals(initialSettings.DataProvider, "none", StringComparison.OrdinalIgnoreCase))});
return IndexViewResult(new SetupViewModel { AdminUsername = "admin", DatabaseIsPreconfigured = !string.IsNullOrEmpty(initialSettings.DataProvider)});
}
[HttpPost, ActionName("Index")]