Sebastian Serth
59257d17f2
Add user (ID and type) to proxy exercise
...
This is required for the existing policies to work
2018-12-06 00:31:45 +01:00
Sebastian Serth
56c59a616e
Completely remove old non-structured errors and migrate existing ones.
2018-11-30 11:27:25 +01:00
Sebastian Serth
efacb5a6a9
Completely remove old hints connected to the execution environment
2018-11-28 01:21:13 +01:00
Sebastian Serth
90defa8f89
Fix tests and rename request
variable in specs to perform_request
...
Explanation: Using the variable name `request` might interfere with methods in Rails core system prevent successful test execution. See this issue: https://github.com/turbolinks/turbolinks-rails/issues/38
2018-11-06 16:49:42 +01:00
Sebastian Serth
9106ab182b
Include Webpack and use it for jQuery, Bootstrap and chosen.js
2018-11-06 16:49:42 +01:00
Sebastian Serth
9666683bd7
Fix error, submission, hints and help views
2018-11-06 16:46:01 +01:00
Sebastian Serth
a77a006e8d
Update CSRF chain to prepend checks and resolve comments from PR
...
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de >
2018-11-06 16:46:01 +01:00
Sebastian Serth
de52db89f0
Upgrade Rails to version 5.2.1 and adopt code & specs where necessary
...
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de >
2018-11-06 16:46:00 +01:00
Sebastian Serth
108190c242
Create three traits in FactoryBot to prevent deprecation warning
...
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de >
2018-11-06 16:46:00 +01:00
Sebastian Serth
ff24a0bf0b
Move non-empty files from test dir to spec and adopt specs
...
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de >
2018-11-06 16:45:59 +01:00
Sebastian Serth
1f12b39731
Hide FactoryBot deprecation warning by changing static assignment
...
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de >
2018-11-06 16:45:59 +01:00
Sebastian Serth
ac31afbd2a
Clean Gemfile and perform bundle update
...
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de >
2018-11-06 16:45:59 +01:00
Maximilian Grundke
2c9f1a2917
Add tests for events controller
2018-08-15 14:40:59 +02:00
Maximilian Grundke
f5337fcb59
Add tests for statistics controller routes
2018-05-07 17:17:56 +02:00
Sebastian Serth
d503b3c0f6
Fix editor_spec and adopt to current design of implementation page
...
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de >
2018-03-09 15:23:29 +01:00
Sebastian Serth
302f3a4896
Add Selenium support file for specs and include headless for Vagrant
...
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de >
2018-03-09 15:23:29 +01:00
Sebastian Serth
1f56f8fb78
Always create workspace path dir for DockerClient specs
2018-02-22 17:19:54 +01:00
Sebastian Serth
d5e16c967d
Reenable some LTI specs with mocked LTI parameter
2018-02-22 17:19:54 +01:00
Sebastian Serth
eb4e620775
Allow folders to be created during DockerClient Spec
2018-02-22 17:19:54 +01:00
Sebastian Serth
2a38db6e75
Move workspace path to subdir of /tmp to prevent deleting other files
2018-02-22 17:19:53 +01:00
Sebastian Serth
3916f66695
Fix Factories
2018-02-22 17:19:53 +01:00
Ralf Teusner
a9f33bc2c2
Merge branch 'master' into update-gemfile
2018-02-14 13:31:14 +01:00
Maximilian Grundke
6377c6ca0f
Use skip instead of misused pending in oscillating tests
2018-01-31 13:06:18 +01:00
Maximilian Grundke
e934a29a45
Set oscillating tests to pending
2017-12-20 10:36:31 +01:00
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