Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. require 'rails_helper'
  2.  
  3. RSpec.describe ChaptersController do
  4. describe '#GET /classes/<class_slug>/chapters/<chapter_slug>/watch redirects' do
  5. xcontext 'user is not logged in' do
  6. it 'redirect to homepage with next_page param AND next_page should not contian /watch' do
  7. end
  8.  
  9. it 'returns 301 - moved_permanently' do
  10. end
  11.  
  12. it 'redirects keeping params' do
  13. end
  14. end
  15.  
  16. xcontext 'user is logged in AND has AAP' do
  17. it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
  18. end
  19.  
  20. it 'renders the watch chapter page' do
  21. end
  22.  
  23. it 'returns 301 - moved_permanently' do
  24. end
  25.  
  26. it 'redirects keeping params' do
  27. end
  28. end
  29.  
  30. xcontext 'user is logged in AND no AAP AND enrolled in the course' do
  31. it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
  32. end
  33.  
  34. it 'renders the watch chapter page' do
  35. end
  36.  
  37. it 'returns 301 - moved_permanently' do
  38. end
  39.  
  40. it 'redirects keeping params' do
  41. end
  42. end
  43.  
  44. xcontext 'user is logged in AND no AAP AND not enrolled in the course' do
  45. it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
  46. end
  47.  
  48. it 'renders the preview page' do
  49. end
  50.  
  51. it 'returns 301 - moved_permanently' do
  52. end
  53.  
  54. it 'redirects keeping params' do
  55. end
  56. end
  57.  
  58. xcontext 'user is logged in AND has AAP AND the course is blacklisted' do
  59. it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
  60. end
  61.  
  62. it 'redirect to homepage' do
  63. end
  64.  
  65. it 'returns 301 - moved_permanently' do
  66. end
  67.  
  68. it 'redirects keeping params' do
  69. end
  70. end
  71.  
  72. xcontext 'user is logged in AND no AAP AND not enrolled in the course AND the course is blacklisted' do
  73. it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
  74. end
  75.  
  76. it 'redirect to homepage' do
  77. end
  78.  
  79. it 'returns 301 - moved_permanently' do
  80. end
  81.  
  82. it 'redirects keeping params' do
  83. end
  84. end
  85.  
  86. xcontext 'user is logged in AND no AAP AND enrolled in the course AND the course is blacklisted' do
  87. it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
  88. end
  89.  
  90. it 'redirect to homepage' do
  91. end
  92.  
  93. it 'returns 301 - moved_permanently' do
  94. end
  95.  
  96. it 'redirects keeping params' do
  97. end
  98. end
  99.  
  100. xcontext 'user is logged in AND has inactive subscription AND not enrolled in the course' do
  101. it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
  102. end
  103.  
  104. it 'redirect to preview page' do
  105. end
  106.  
  107. it 'returns 301 - moved_permanently' do
  108. end
  109.  
  110. it 'redirects keeping params' do
  111. end
  112. end
  113.  
  114. xcontext 'user is logged in AND has expired subscription AND not enrolled in the course' do
  115. it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
  116. end
  117.  
  118. it 'redirect to preview page' do
  119. end
  120.  
  121. it 'returns 301 - moved_permanently' do
  122. end
  123.  
  124. it 'redirects keeping params' do
  125. end
  126. end
  127.  
  128. xcontext 'user is logged in AND has lapsed subscription AND not enrolled in the course' do
  129. it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
  130. end
  131.  
  132. it 'redirect to preview page' do
  133. end
  134.  
  135. it 'returns 301 - moved_permanently' do
  136. end
  137.  
  138. it 'redirects keeping params' do
  139. end
  140. end
  141. end
  142. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement