@@ -82,22 +82,22 @@ def setup
8282
8383 attr_reader :service_plan , :buyer , :application_plan , :service
8484
85- test 'crate application redirects to the provider admin index page' do
85+ test 'create application redirects to the provider admin index page' do
8686 post admin_service_applications_path ( service ) , params : { account_id : buyer . id ,
8787 cinstance : { service_plan_id : service_plan . id , plan_id : application_plan . id , name : 'My Application' } }
8888
8989 assert_redirected_to provider_admin_application_path ( Cinstance . last )
9090 end
9191
92- test 'crate application with no service plan selected' do
92+ test 'create application with no service plan selected' do
9393 post admin_service_applications_path ( service ) , params : { account_id : buyer . id ,
9494 cinstance : { plan_id : application_plan . id , name : 'My Application' } }
9595
9696 application = Cinstance . last
9797 assert_redirected_to provider_admin_application_path ( application )
9898 end
9999
100- test 'crate application with no service plan selected and a default service plan' do
100+ test 'create application with no service plan selected and a default service plan' do
101101 default_service_plan = FactoryBot . create ( :service_plan , service : service )
102102 service . update ( default_service_plan : default_service_plan )
103103 post admin_service_applications_path ( service ) , params : { account_id : buyer . id ,
@@ -107,7 +107,7 @@ def setup
107107 assert_equal default_service_plan , buyer . bought_service_contracts . first . service_plan
108108 end
109109
110- test 'crate application with no service plan selected and no default service plan' do
110+ test 'create application with no service plan selected and no default service plan' do
111111 other_service_plan = FactoryBot . create ( :service_plan , service : service )
112112 service . update ( default_service_plan : nil )
113113 post admin_service_applications_path ( service ) , params : { account_id : buyer . id ,
@@ -117,7 +117,7 @@ def setup
117117 assert_not_equal other_service_plan , buyer . bought_service_contracts . first . service_plan
118118 end
119119
120- test 'crate application with no service plan selected and a subscription' do
120+ test 'create application with no service plan selected and a subscription' do
121121 subscribed_service_plan = FactoryBot . create ( :service_plan , service : service )
122122 buyer . bought_service_contracts . create ( plan : subscribed_service_plan )
123123 post admin_service_applications_path ( service ) , params : { account_id : buyer . id ,
0 commit comments