Commit Graph

222 Commits

Author SHA1 Message Date
Ralf Teusner
901d35c59c updates for codeclimate 2017-11-29 09:57:27 +01:00
Ralf Teusner
fc873cb053 second run of replacement regex from https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md ...
Nested calls seem to be fun..
2017-11-15 15:37:42 +01:00
Ralf Teusner
0e26ab98c8 rename factory_girl_(rails) to factory_bot_(rails) 2017-11-15 15:18:07 +01:00
Maximilian Grundke
03141409e8 Fix tests for user_exercise_feedback 2017-11-08 15:41:48 +01:00
Ralf Teusner
3608712706 forgot some minor changes in spec.. (still work in progress) 2017-11-06 15:38:50 +01:00
Ralf Teusner
ac14e2d0ca first steps towards testing the redirect with regards to user_feedbacks 2017-11-01 11:57:56 +01:00
Maximilian Grundke
0fd993c1cd Move submission url attributes to controller test 2017-10-26 15:48:21 +02:00
Maximilian Grundke
34e96e40be Fix submissions controller test json response 2017-10-26 15:43:14 +02:00
Maximilian Grundke
14a135a0c9 Add explanatory comment to config 2017-10-26 15:42:20 +02:00
Maximilian Grundke
6d28f427d8 Add Ralf's comment to skipped tests 2017-10-25 10:12:29 +02:00
Maximilian Grundke
ffe4f65628 Adapt lti_spec to current functionality 2017-10-18 22:05:07 +02:00
Maximilian Grundke
a00adbce25 Move *_url spec to controller, because the subscription model does not handle urls anymore 2017-10-16 14:02:40 +02:00
Maximilian Grundke
686d56bbd6 Add rspec persistence file to config to allow for re-running only failed tests locally 2017-10-16 13:20:40 +02:00
Thomas Hille
350913de79 fixed LTI Spec 2017-03-21 10:31:33 +01:00
Thomas Hille
7a61d5a983 tests 2017-03-21 10:31:32 +01:00
Thomas Hille
d5b2ea4269 added proxy exercise dispatching to LTI module. Submissions now set user before the exercise token gets validated. this we need to set the exercise behind the proxy exercise 2017-03-21 10:31:32 +01:00
Tom Staubitz
4badd82d58 fixed broken test 2017-01-19 14:34:49 +01:00
Tom Staubitz
e634caf408 fixing tests final nice-up 2017-01-13 11:11:15 +01:00
Tom Staubitz
6bf73757ae fixing tests p3 2017-01-13 09:56:36 +01:00
Tom Staubitz
4af24d4317 fixing tests p2 lti_spec tests all passed 2017-01-13 00:37:07 +01:00
Tom Staubitz
5fe12bfa78 fixing tests p1 2017-01-12 18:12:36 +01:00
Tom Staubitz
325ea25849 Replaced session[:lti_parameters] with proper LtiParameter object.
Removed all tests that would be failing

TODO: decision if all LtiParameter objects for a certain user/consumer will be deleted when the user/consumer is deleted from the session, or only the LtiParameter object for the current exercise of the user/consumer.

TODO: replace removed tests with proper tests
2016-12-30 09:45:39 +01:00
Tom Staubitz
6f1d8b2d38 Marked more locations that might require to be changed when we switch from session to LtiParameters Object 2016-12-27 07:48:59 +01:00
Tom Staubitz
f4c01879bf preparations to replace session with lti_parameters object 2016-12-27 00:13:41 +01:00
rteusner
d931d431d5 Update submissions_controller_spec.rb
removed some uncommented lines
2016-11-11 17:29:03 +01:00
Ralf Teusner
3842509275 removed comments that had no value for me. 2016-11-11 16:44:55 +01:00
Ralf Teusner
9852119d49 skip some more selenium tests which are currently not working locally. 2016-11-11 15:37:22 +01:00
yqbk
c937a1a9ef clean pull request 2016-10-24 23:02:44 +02:00
yqbk
46cdbc3b4b change workspace path to /tmp 2016-10-16 17:28:57 +02:00
yqbk
f055e6813d changes in travis 2016-10-16 17:21:54 +02:00
yqbk
043ece68f4 enable container tests 2016-10-16 16:55:24 +02:00
yqbk
7a76c4c6f1 try out new code 2016-10-11 13:12:00 +02:00
yqbk
1945a47109 apply changes after review 2016-10-11 12:44:16 +02:00
yqbk
44aca293e9 make travis green again 2016-10-08 20:37:20 +02:00
yqbk
ea745cbb5b require codeclimate 2016-10-08 17:48:28 +02:00
yqbk
b8e1cb8dfd additional pending 2016-08-04 16:57:08 +02:00
yqbk
7efcfa632b come back to green light! 2016-08-04 16:54:55 +02:00
yqbk
41b0c1e530 solve extension probelm 2016-08-03 17:21:49 +02:00
yqbk
032c201b94 repair database query 2016-08-03 14:08:01 +02:00
yqbk
4183a16178 merge with master 2016-08-03 12:09:58 +02:00
yqbk
16206cf58f restore one line 2016-07-04 17:56:57 +02:00
yqbk
2bb1362520 further delete (spec files) 2016-07-04 16:59:30 +02:00
yqbk
d921f90a65 solved logger error 2016-06-15 15:13:31 +02:00
yqbk
195fd9c3f9 submission controller spec - problem with Rails.logger.error 2016-06-14 16:07:44 +02:00
yqbk
c8abe46815 Problem with Error_controller_spec seemst to be connected with pundit. When we use version 0.3 instead of 1.1 all tests are passing. I have discovered that somehow error record is not correctly assigned in newer verion. Probably we need to look for an issue in spec/factories/error or app/models/error files. Tests are failing at the first step, when creating error -> @error = Error.new(params). Still hasn't solved but im quite close 2016-06-08 18:56:54 +02:00
yqbk
4c16661bc3 change error policies 2016-06-07 18:22:45 +02:00
yqbk
edbb043b44 Merge branch 'rspec-tests-controllers' of github.com:openHPI/codeocean into rspec-tests-controllers 2016-06-07 13:53:05 +02:00
yqbk
ed20a30517 reverse some changes 2016-06-07 13:52:01 +02:00
Ralf Teusner
f7e7db54ec fixed issues with deleting files and issue with json method not defined for the mock-double for rspec-tests in lib 2016-06-02 14:27:49 +02:00
yqbk
d980ffb4c0 add role author to execution_environment_policy 2016-05-31 18:39:03 +02:00