Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rails_helper'
- RSpec.describe ChaptersController do
- describe '#GET /classes/<class_slug>/chapters/<chapter_slug>/watch redirects' do
- xcontext 'user is not logged in' do
- it 'redirect to homepage with next_page param AND next_page should not contian /watch' do
- end
- it 'returns 301 - moved_permanently' do
- end
- it 'redirects keeping params' do
- end
- end
- xcontext 'user is logged in AND has AAP' do
- it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
- end
- it 'renders the watch chapter page' do
- end
- it 'returns 301 - moved_permanently' do
- end
- it 'redirects keeping params' do
- end
- end
- xcontext 'user is logged in AND no AAP AND enrolled in the course' do
- it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
- end
- it 'renders the watch chapter page' do
- end
- it 'returns 301 - moved_permanently' do
- end
- it 'redirects keeping params' do
- end
- end
- xcontext 'user is logged in AND no AAP AND not enrolled in the course' do
- it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
- end
- it 'renders the preview page' do
- end
- it 'returns 301 - moved_permanently' do
- end
- it 'redirects keeping params' do
- end
- end
- xcontext 'user is logged in AND has AAP AND the course is blacklisted' do
- it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
- end
- it 'redirect to homepage' do
- end
- it 'returns 301 - moved_permanently' do
- end
- it 'redirects keeping params' do
- end
- end
- xcontext 'user is logged in AND no AAP AND not enrolled in the course AND the course is blacklisted' do
- it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
- end
- it 'redirect to homepage' do
- end
- it 'returns 301 - moved_permanently' do
- end
- it 'redirects keeping params' do
- end
- end
- xcontext 'user is logged in AND no AAP AND enrolled in the course AND the course is blacklisted' do
- it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
- end
- it 'redirect to homepage' do
- end
- it 'returns 301 - moved_permanently' do
- end
- it 'redirects keeping params' do
- end
- end
- xcontext 'user is logged in AND has inactive subscription AND not enrolled in the course' do
- it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
- end
- it 'redirect to preview page' do
- end
- it 'returns 301 - moved_permanently' do
- end
- it 'redirects keeping params' do
- end
- end
- xcontext 'user is logged in AND has expired subscription AND not enrolled in the course' do
- it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
- end
- it 'redirect to preview page' do
- end
- it 'returns 301 - moved_permanently' do
- end
- it 'redirects keeping params' do
- end
- end
- xcontext 'user is logged in AND has lapsed subscription AND not enrolled in the course' do
- it 'redirect to /classes/<class_slug>/chapters/<chapter_slug>' do
- end
- it 'redirect to preview page' do
- end
- it 'returns 301 - moved_permanently' do
- end
- it 'redirects keeping params' do
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement