Commit f6b472cd430c69a6e3620b1ae4fc89160e9c9ca2
Committed by
Fabio Teixeira
1 parent
8bca6f46
Exists in
master
and in
3 other branches
Fix create institution functional test
Signed-off-by: Luciano Prestes Cavalcanti <lucianopcbr@gmail.com> Signed-off-by: Thiago Ribeiro <thiagitosouza@hotmail.com>
Showing
1 changed file
with
2 additions
and
6 deletions
Show diff stats
test/functional/gov_user_plugin_controller_test.rb
| @@ -185,17 +185,13 @@ class GovUserPluginControllerTest < ActionController::TestCase | @@ -185,17 +185,13 @@ class GovUserPluginControllerTest < ActionController::TestCase | ||
| 185 | "BR", | 185 | "BR", |
| 186 | "DF", | 186 | "DF", |
| 187 | "Brasilia", | 187 | "Brasilia", |
| 188 | - "", | 188 | + "56.366.790/0001-88", |
| 189 | "PrivateInstitution" | 189 | "PrivateInstitution" |
| 190 | ) | 190 | ) |
| 191 | - fields[:institutions][:acronym] = "SPI" | ||
| 192 | - | ||
| 193 | - fields[:action] = "new_institution" | ||
| 194 | - fields[:controller] ="gov_user_plugin" | ||
| 195 | 191 | ||
| 196 | post :new_institution, fields | 192 | post :new_institution, fields |
| 197 | 193 | ||
| 198 | - assert_redirected_to(controller: "gov_user_plugin", action: "create_institution_admin", params: fields) | 194 | + assert_redirected_to(controller: "admin_panel", action: "index") |
| 199 | end | 195 | end |
| 200 | 196 | ||
| 201 | should "Create foreign institution without city, state and cnpj by post" do | 197 | should "Create foreign institution without city, state and cnpj by post" do |