@@ -14,14 +14,14 @@ def setup
1414 "name" : "Falko" ,
1515 "description" : "Some project description 1." ,
1616 "user_id" : @user . id ,
17- "check_project " : true
17+ "is_project_from_github " : true
1818 )
1919
2020 @project2 = Project . create (
2121 "name" : "Falko" ,
2222 "description" : "Some project description 2." ,
2323 "user_id" : @user . id ,
24- "check_project " : false
24+ "is_project_from_github " : false
2525 )
2626
2727 @token = AuthenticateUser . call ( @user . email , @user . password )
@@ -33,7 +33,7 @@ def setup
3333 "name" : "Falko" ,
3434 "description" : "Some project description." ,
3535 "user_id" : @user . id ,
36- "check_project " : true
36+ "is_project_from_github " : true
3737 }
3838 } , headers : { Authorization : @token . result }
3939
@@ -47,7 +47,7 @@ def setup
4747 "project" : {
4848 "name" : "" ,
4949 "description" : "A" * 260 ,
50- "check_project " : true
50+ "is_project_from_github " : true
5151 }
5252 } , headers : { Authorization : @token . result }
5353
@@ -69,7 +69,7 @@ def setup
6969 project : {
7070 "name" : "Falko BackEnd" ,
7171 "description" : "Falko BackEnd!" ,
72- "check_project " : "true"
72+ "is_project_from_github " : "true"
7373 }
7474 } , headers : { Authorization : @token . result }
7575 @project . reload
@@ -87,7 +87,7 @@ def setup
8787 project : {
8888 "name" : "a" ,
8989 "description" : "a" ,
90- "check_project " : "false"
90+ "is_project_from_github " : "false"
9191 }
9292 } , headers : { Authorization : @token . result }
9393 @project . reload
@@ -221,7 +221,7 @@ def mock.organization_repositories(login)
221221 end
222222 end
223223
224- test "should not import a project from github if the check_project is invalid" do
224+ test "should not import a project from github if the is_project_from_github is invalid" do
225225 post "/users/#{ @user . id } /projects" , params : {
226226 "project" : {
227227 "name" : "Falko" ,
0 commit comments