Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling in the test directory #2395

Open
wants to merge 1 commit into
base: 6.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/general/AdminPages.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ component extends="org.lucee.cfml.test.LuceeTestCase" {
});

it( title="check admin 404", body=function(){
// not found (page doens't exist )
// not found (page doesn't exist )
checkUrl( adminRoot, "index.cfm?action=i.dont.exist", 404 );
});

it( title="check admin 500", body=function(){
// 500 (mappng doesn't exist)
// 500 (mapping doesn't exist)
checkUrl( adminRoot, "index.cfm?action=resources.mappings&action2=create&virtual=/lucee/adminMissing", 500 );
});
});
Expand Down Expand Up @@ -147,4 +147,4 @@ component extends="org.lucee.cfml.test.LuceeTestCase" {
expect( local.result.status ).toBe( arguments.statusCode,
arguments.adminRoot & page & " returned status code: " & local.result.status );
}
}
}
4 changes: 2 additions & 2 deletions test/general/Resources.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ private function testResourceReadWrite(res) localMode=true {
}

private function testResourceProvider(string path) localmode=true {
// first we ceate a resource object
// first we create a resource object
res=createObject('java','lucee.commons.io.res.util.ResourceUtil').toResourceNotExisting(getPageContext(), path);

// delete when exists
Expand Down Expand Up @@ -651,4 +651,4 @@ private function assertEqualPaths(string path1, string path2) {
}
return false;
}
}
}
10 changes: 5 additions & 5 deletions test/general/Struct.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{
function afterAll(){}

function run( testResults , testBox ) {
describe( "tests for the type sruct", function() {
describe( "tests for the type struct", function() {

it(title="test listener struct return a value", body=function(){
var sct=structNew(onMissingKey:function(key,data){
Expand Down Expand Up @@ -89,7 +89,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{


it(title="short hand literal struct invalid 1", body=function(){
// we need to make this in a separate file because this creates a template exception (comppiler)
// we need to make this in a separate file because this creates a template exception (compiler)
var uri=createURI("Struct/invalid1.cfm");
try {
_InternalRequest(template:uri);
Expand All @@ -100,7 +100,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{
expect(error).toBeTrue();
});
it(title="short hand literal struct invalid 2", body=function(){
// we need to make this in a separate file because this creates a template exception (comppiler)
// we need to make this in a separate file because this creates a template exception (compiler)
var uri=createURI("Struct/invalid2.cfm");
try {
_InternalRequest(template:uri);
Expand All @@ -112,7 +112,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{

});
it(title="short hand literal struct invalid 3", body=function(){
// we need to make this in a separate file because this creates a template exception (comppiler)
// we need to make this in a separate file because this creates a template exception (compiler)
var uri=createURI("Struct/invalid3.cfm");
var error=false;
try {
Expand All @@ -132,4 +132,4 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{
var baseURI="/test/#listLast(getDirectoryFromPath(getCurrenttemplatepath()),"\/")#/";
return baseURI&""&calledName;
}
}
}
4 changes: 2 additions & 2 deletions test/tickets/LDEV3907.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="orm" {
expect(trim(result)).toBe("LDEV3907");
});

it( title="updating any value in the ORM entity and then accesssing after an ormsave (force: false)", skip=true, body=function( currentSpec ) {
it( title="updating any value in the ORM entity and then accessing after an ormsave (force: false)", skip=true, body=function( currentSpec ) {
try {
local.result = _InternalRequest(
template : "#uri#\LDEV3907.cfm",
Expand All @@ -51,7 +51,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="orm" {
expect(trim(result)).toBe("LDEV3907");
});

it( title="updating any value in the ORM entity and then accesssing after an ormsave (force: true)", skip=notHasMssql(), body=function( currentSpec ) {
it( title="updating any value in the ORM entity and then accessing after an ormsave (force: true)", skip=notHasMssql(), body=function( currentSpec ) {
try {
local.result = _InternalRequest(
template : "#uri#\LDEV3907.cfm",
Expand Down
2 changes: 1 addition & 1 deletion test/tickets/LDEV4052/index.cfm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!---
no server defined, so it relies on Application.cfc settings,
which won't load propely due to invalid cfscript instead of cfcomponent
which won't load properly due to invalid cfscript instead of cfcomponent
--->
<cfoutput>I shouldn't be reachable</cfoutput>
4 changes: 2 additions & 2 deletions test/tickets/LDEV4056/LDEV4056.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
}

transaction {
// transaction without any query activites
// transaction without any query activities
}
writeoutput("success");
}
catch(any e) {
writeoutput(e.message);
}
</cfscript>
</cfscript>