Advertisement
Guest User

Untitled

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