Commit graph

512 commits

Author SHA1 Message Date
Jyri-Petteri Paloposki
a020beab9e More Ruby 3 compatibility fixes 2022-01-03 22:23:41 +02:00
Jyri-Petteri Paloposki
6c0d3ca1b3 Use the new fork gem 2021-08-25 17:18:57 +03:00
Matt Rogers
af32031002
Fix due dates in recurring todo test 2021-07-24 15:14:47 -05:00
Jyri-Petteri Paloposki
d4c9041ccd More code style fixes 2021-01-06 03:47:35 +02:00
Jyri-Petteri Paloposki
e1be3b8a95 Fix the jquery-ui datepicker i18n files' asset compilation 2021-01-05 19:40:28 +02:00
Jyri-Petteri Paloposki
da4f662aae Add testing for locales 2021-01-05 18:32:01 +02:00
Jyri-Petteri Paloposki
7272f1c743 #2484: Fix test changing contexts. Why choose at random and occasionally fail when you can just pick useful fixtures? 2021-01-05 07:47:58 +02:00
Jyri-Petteri Paloposki
b9b2a3f5d5 #2534: Test setting the due date in calendar view. 2021-01-05 07:07:17 +02:00
Jyri-Petteri Paloposki
27f7fca29e #2472: Add test to find similar problems in future 2020-09-06 12:30:02 +03:00
Jyri-Petteri Paloposki
beed8773e6 Add the remaining necessary parameters to the test 2020-09-06 02:44:35 +03:00
Jyri-Petteri Paloposki
294a6356fa #2471: Add test to find similar problems in future 2020-09-06 02:00:11 +03:00
Jyri-Petteri Paloposki
de25e989db Fix the last test failing on PgSQL by making sure we're editing an active todo when testing notes 2020-09-05 03:51:50 +03:00
Jyri-Petteri Paloposki
41c9d3fb18 Sort the group count values to fix tests in PgSQL broken by 5b6cbf566. 2020-09-05 02:40:26 +03:00
Jyri-Petteri Paloposki
bbb9fc8809 Make LIKE searches case-insensitive also on PgSQL 2020-09-05 02:17:32 +03:00
Jyri-Petteri Paloposki
0e5da18b71
Merge pull request #2453 from TracksApp/dependabot/bundler/aasm-5.1.1
Bump aasm from 4.12.3 to 5.1.1
2020-08-25 17:55:28 +03:00
Jyri-Petteri Paloposki
a0768636c3 Try fixing a few test deprecations 2020-08-20 19:33:46 +03:00
Jyri-Petteri Paloposki
f077af520c
Merge pull request #2460 from TracksApp/remove-mocha-deprecation-warning
Remove mocha deprecation warning
2020-08-20 03:47:55 +03:00
Jyri-Petteri Paloposki
ea6c11c3a4 Add the style parameter 2020-08-19 12:03:44 +03:00
Jyri-Petteri Paloposki
6c8e0ce176 Add tests 2020-08-18 14:49:37 +03:00
Jyri-Petteri Paloposki
95cb7ec799 Fix tests and add more comments 2020-08-11 11:50:35 +03:00
Jyri-Petteri Paloposki
84429bdb8e Fixed the last test 2020-07-20 20:54:50 +03:00
Jyri-Petteri Paloposki
149dbe7e27 More fixed tests 2020-07-20 20:25:35 +03:00
Jyri-Petteri Paloposki
efee4976b0 Make email address voluntary in preferences; update tests to handle the added email field better 2020-07-20 20:08:18 +03:00
Matt Rogers
4d3fa62f8a
Remove mocha deprecation warning 2020-02-27 20:24:39 -06:00
Jan-Yves Ruzicka
6fcf7e6d46 Fix test_start_from_in_future 2020-02-06 10:46:32 +13:00
Jyri-Petteri Paloposki
6b54962388 #1955: Add user_id to tag test fixtures to fix tests 2019-06-27 15:58:12 +03:00
Jyri-Petteri Paloposki
dc0ca7239a
Merge branch 'master' into bug/1153_stats 2019-05-22 01:48:37 +03:00
Jyri-Petteri Paloposki
43523d8191 Test the RSS feed of starred, active todos 2019-05-22 00:40:58 +03:00
Jyri-Petteri Paloposki
088346ecb0 One more decomissioned test file away 2019-05-20 01:21:55 +03:00
Jyri-Petteri Paloposki
80aad1b4f2 #1153: Remove unnecessary type change and test for stats chart templates and endpoints which were removed 2019-05-20 01:12:25 +03:00
Steven R. Baker
1461a3a10c The actual link should be URI escaped, not HTML escaped. 2019-05-13 18:59:39 +02:00
Jyri-Petteri Paloposki
78ef3141c6 #2203: Change the test testing API token access to test for ok instead of forbidden 2019-05-04 20:58:53 +03:00
Matt Rogers
63ac90ebb2
Convert to using symbols everywhere 2019-04-11 11:28:43 -05:00
Matt Rogers
fc17a03bc0
Add tests for the new object and fix a bug
Each of the individual query chunks has their own test, in addition to a
test for the full combination of parameters that could influence a
query.

There is also a bugfix for the tag query in here, since I want, as much
as possible, to have passing tests on every commit.
2019-04-11 09:53:53 -05:00
Matt Rogers
7608ed080c
Remove the alt text for removing the dependency
It's no longer generated automatically by Rails' helpers
2018-11-17 10:58:16 -06:00
Matt Rogers
32d267d6cd
Remove private variable usage from models
It seems that `@new_record_before_save` as an instance variable has been
present since around 2007 and it wasn't until Rails 5.1 that things were
changed in such a way to make this inaccessible now.
2018-11-12 13:23:30 -06:00
Matt Rogers
735c6848fc
Use hash style syntax to get errors
ActiveModel::Errors#get is deprecated, has no effect, and will be
removed without replacement.

Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-11-03 15:23:56 -05:00
Matt Rogers
6e48ce6594
Compare items of the same type
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-11-03 15:19:57 -05:00
Matt Rogers
908f021aa5
Stop using a deprecated method to reload an association
Use `reload` instead.

Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-11-03 15:16:00 -05:00
Matt Rogers
2f85a42f91
Use the keyword args syntax for controller actions
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-11-03 15:02:00 -05:00
Matt Rogers
fd2f49596c
Update test with the proper param structure
Fixes the test failure we were seeing here.
2018-10-27 13:33:40 -05:00
Matt Rogers
edd0559da1
Fix the mixed-indent in NotesControllerTest 2018-10-19 11:35:52 -05:00
Matt Rogers
71c95c0d01
Switch assert_not_equal to refute_equal
Preferring to use minitest methods here instead of test-unit.
2018-10-19 11:35:52 -05:00
Matt Rogers
dea3b1b58e
Update to a more performant random string implementation
Since `SecureRandom.alphanumeric` is Ruby 2.5 only, we can't use that
for now. Implement a new version until we can get Tracks updated to that
version.
2018-10-19 11:35:52 -05:00
Matt Rogers
bb8fd08685
Remove the assert_value_changed helper
It's only used in one place and it's easy enough to rewrite this into
something more straightforward and less clever.
2018-10-17 21:22:13 -05:00
ericmoon
a92317f0b5 stupid typos 2018-08-02 11:58:56 -07:00
ericmoon
589ee75168 another assert_nil hack 2018-08-02 11:52:01 -07:00
ericmoon
04d5e764b2 typo fix 2018-08-02 11:43:48 -07:00
ericmoon
429a22778c hack to remove minitest deprecation warnings 2018-08-02 11:31:50 -07:00
ericmoon
fa7f2a777b assert_equal nil deprecated: replace with assert_nil 2018-08-02 10:57:11 -07:00