-
Notifications
You must be signed in to change notification settings - Fork 26
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
Lifeforms followup #1788
Merged
Merged
Lifeforms followup #1788
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- And conform expectation to added Name
Test fails becuause of pre-existing issue in form ```ruby % rails t test/integration/capybara/names_integration_test.rb -n test_lifeform ... ERROR NamesIntegrationTest#test_lifeform (5.31s) Minitest::UnexpectedError: ActionController::RoutingError: No route matches [POST] "/names/832367622/lifeforms/propagate" test/integration/capybara/names_integration_test.rb:126:in `test_lifeform' ```
…rms-followup-1787
- Specity :put as form method, fixing bug that caused routing error - Reloads object in species, fixing bug in test - Adds error message to assertion - Renames test
Turns test green
Fixes this test failure: ```ruby % rails t test/models/api2_test.rb:1772 Started with run options --seed 23500 FAIL API2Test#test_getting_names (1.62s) API2 results wrong. Query args: {:by=>"id", :misspellings=>:no, :names=>["271247339"], :include_subtaxa=>true, :exclude_original_names=>true} Query sql: SELECT DISTINCT names.id FROM `names` WHERE names.id IN (80895585,139785830,158828821,230704064,265698276,288002050,294699169,296421830,315940267,393515326,456981406,501140881,540213941,545255341,547603516,561573041,651545465,668214189,698443452,743294091,815653499,832367622,984734592,1041241452,1042698304,1073463617) AND names.correct_spelling_id IS NULL ORDER BY names.id ASC . --- expected +++ actual @@ -1 +1 @@ -["<agaricaceae>", "<agaricales>", "<agaricus>", "<agaricus_campestras>", "<agaricus_campestris>", "<agaricus_campestros>", "<agaricus_campestrus>", "<ascomycetes>", "<ascomycota>", "<basidiomycetes>", "<basidiomycota>", "<chlorophyllum>", "<chlorophyllum_rachodes>", "<chlorophyllum_rhacodes>", "<coprinus>", "<coprinus_comatus>", "<lecanorales>", "<lepiota>", "<lepiota_rachodes>", "<lepiota_rhacodes>", "<peltigera>", "<peltigeraceae>", "<sect_agaricus>", "<tremella>", "<tremella_celata>", "<tremella_justpublished>", "<tremella_mesenterica>"] +["<agaricaceae>", "<agaricales>", "<agaricus>", "<agaricus_campestras>", "<agaricus_campestris>", "<agaricus_campestros>", "<agaricus_campestrus>", "<ascomycetes>", "<ascomycota>", "<basidiomycetes>", "<basidiomycota>", "<chlorophyllum>", "<chlorophyllum_rachodes>", "<chlorophyllum_rhacodes>", "<coprinus>", "<coprinus_comatus>", "<lecanorales>", "<lepiota>", "<lepiota_rachodes>", "<lepiota_rhacodes>", "<peltigera>", "<peltigeraceae>", "<sect_agaricus>", "<tremella>", "<tremella_celata>"] test/general_extensions.rb:192:in `assert_arrays_equal' test/general_extensions.rb:200:in `assert_obj_arrays_equal' test/models/api2_test.rb:58:in `assert_api_results' test/models/api2_test.rb:1772:in `test_getting_names' ```
- Fixes bug in test: ```ruby FAIL Names::LifeformsControllerTest#test_edit_lifeform (159.03s) Expected: " lichenicolous " Actual: " " test/controllers/names/lifeforms_controller_test.rb:26:in `test_edit_lifeform' ``` - Lifeform form now uses params[:lifeform][:<form>] rather than params[:lifeform_<form>]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1787