Commit graph

39 commits

Author SHA1 Message Date
Matt Rogers
62ef5db39d Invoke CodeClimate and Simplecov from the test helper
Moves them out of the rake task so that we can:
 - Get coverage information locally
 - Get reporting of coverage and code climate at the unit test level

Having it at the CI level was nice to get explicit coverage for both
cucumber and the test suite but it doesn't work if the test suite
doesn't run at all.
2018-01-03 15:37:00 -06:00
Dan Rice
1ba829e960 Merge branch '2.3_branch' 2016-10-15 13:13:02 -04:00
Carsten Otto
d7aa83b747 add tests for feeds
and reorganize existing tests
2016-06-04 00:22:13 +02:00
Dan Rice
689db4c9c3 Update assert_select for Nokogiri compatibility
assert_select has been moved into the rails-dom-testing gem and is now
based on Nokogiri.

* Remove assert_tag and assert_xml_select
* Quote CSS attribute selector values
* Use decoded versions of HTML in assert_select. Nokogiri decodes
  elements prior to matching.
* Add a test helper for entities such as ` ` for which it's
  difficult or confusing to include the decoded version directly in the
  assertion.
* Assert directly on Atom feeds' XML namespace because it isn't
  selectable as an attribute
2016-05-22 21:59:44 -04:00
Reinier Balt
e58379e81f This fixes failing tests when the timezone is different than utc
There were several problems:
* Time.now returns the systems time, not the users time
* fixtures do not translate dates from timezone to utc, but stores the
  date verbatim
* calling a controller will set the timezone to the preference of the
  current_user. So it could be changed while you do not realize this. I
  fixed the failing test, but problems could be elsewhere
2015-08-05 11:50:33 +02:00
Matteo Giaccone
d7fbcb10c4 Fix #1722 2015-02-22 17:04:46 -05:00
Matteo Giaccone
ed9063bffa Fix #1722 2015-02-22 18:54:24 +00:00
Dan Rice
ea0d40060a Remove support for deprecated password-hashing algorithm
* Remove all methods implementing and checking for the old algorithm
* Document a pre-upgrade step to check for remaining obsolete passwords
* Remove config.salt
2014-11-15 10:28:29 -05:00
Dan Rice
ccc73e80cd Remove migration check, not needed in Rails 4.1 2014-09-12 22:11:54 -04:00
Reinier Balt
01c4b83101 update gems and fix test regressions 2014-07-18 09:41:27 +02:00
Dan Rice
9125355313 Sync boilerplate with Rails 4.1.4 2014-07-07 21:25:24 -04:00
Dan Rice
d171e13e24 Bring a few details in line with Rails 4.1 2014-06-19 12:33:38 -04:00
Reinier Balt
a9fa955c33 move daily test to daily pattern test 2014-03-31 09:43:39 +02:00
Reinier Balt
406eb47db7 move coverage to ci rake task 2013-09-24 09:48:21 +02:00
Reinier Balt
bba86e51d7 re-add simplecov by request 2013-09-23 16:49:59 +02:00
Reinier Balt
76902e95c0 Get test coverage reporting on codeclimate 2013-09-16 09:40:41 +02:00
Matt Rogers
96777c2e3a Replace User#time with UserTime#time 2013-07-30 16:21:04 -05:00
Reinier Balt
cd689dc0e8 remove using minimal_test_helper from test_helper.
It prevents you from running rake test:models or any rake test:xyz, causes by the require of 
test/unit
2013-05-13 12:10:41 +02:00
Reinier Balt
0bc9b0397a move tests to new directory 2013-05-11 23:13:16 +02:00
Matt Rogers
8b0f3e986a Merge branch 'tag-cloud' of https://github.com/kytrinyx/tracks 2013-03-01 16:49:53 -06:00
Katrina Owen
a13199cdda Add unit test for tag cloud 2013-03-01 16:03:35 -05:00
Reinier Balt
bf3a1e653a increate test coverage for user and project model 2013-03-01 16:22:29 +01:00
Matt Rogers
066c378705 Add test coverage generation using simplecov 2012-12-22 22:56:30 -06:00
Reinier Balt
63175c115b all non-cucumber tests are passing 2012-04-30 13:56:41 +02:00
Reinier Balt
13b58f3a10 all unit and functional tests are passing 2012-04-30 13:56:40 +02:00
Reinier Balt
96db48dd86 get project integrations and login controller tests running 2012-04-30 13:56:40 +02:00
Reinier Balt
59a4d5ede0 make functional tests for context controller run 2012-04-30 13:56:39 +02:00
Reinier Balt
76340b780c Getting functional tests running. 2012-04-30 13:56:38 +02:00
Reinier Balt
fd4fb6df9e get all unit tests running again. Seems we have some pretty old code in there :-) 2012-04-30 13:56:37 +02:00
Reinier Balt
a83c8b3f92 initial upgrade to rails 3.2.3 2012-04-30 13:56:33 +02:00
Reinier Balt
84ad01a6f6 improve tests for preferences and fix a pending cucumber step 2011-08-19 12:51:06 +02:00
Reinier Balt
91eeb0c6aa update require statements to fix path issue 2011-06-09 14:49:36 +02:00
Eric Allen
6181d42072 A few tweaks to get tests running 2009-12-07 18:29:57 -05:00
Eric Allen
00da0b36aa Fixed a latent time zone bug in tests.
I created a new method accessible to all tests for forcing a user to the local time zone. The code was cribbed from Rails's rake tasks time:zones:local.
2009-10-13 23:39:36 -04:00
Eric Allen
5a148bc6db Gems should be specified in environment, not test_helper, in newer Rails 2009-08-31 19:42:16 -04:00
Reinier Balt
7a7862221d get tests running again with zentest >= 4.0.0 2009-06-02 21:22:50 +02:00
Reinier Balt
149d05e04f add partial feature for notes. needs to be finished 2009-05-25 20:30:20 +02:00
Eric Allen
778427405a Changed all Date objects to Datetimes and migrated everything appropriately. Tests & specs pass, but this still needs a thorough review. 2008-09-13 13:33:48 -07:00
bsag
4cbf5a34d3 Removed superfluous 'tracks' directory at the root of the repository.
Testing commits to github.
2008-05-20 21:28:26 +01:00
Renamed from tracks/test/test_helper.rb (Browse further)