This commit is contained in:
Mridankan Mandal 2026-08-12 18:54:43 +05:30 committed by GitHub
commit b8b2c4ba4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 10 additions and 10 deletions

View file

@ -11,14 +11,14 @@ describe Admin::CfpsController do
before { sign_in(organizer) }
describe 'POST #create' do
it 'successes' do
it 'succeeds' do
post :create, params: { conference_id: conference.short_title, cfp: { cfp_type: 'events', start_date: today, end_date: today + 6.days, description: 'We call for papers, or tabak, or you know what!' } }
expect(flash[:notice]).to match('Call for papers successfully created.')
end
end
describe 'POST #update' do
it 'successes' do
it 'succeeds' do
patch :update, params: { conference_id: conference.short_title, id: cfp.id, cfp: { end_date: today + 10.days } }
expect(flash[:notice]).to match('Call for papers successfully updated.')
end

View file

@ -50,7 +50,7 @@ describe Admin::RoomsController do
end
describe 'POST #create' do
context 'saves successfuly' do
context 'saves successfully' do
before do
post :create, params: { room: attributes_for(:room), conference_id: conference.short_title }
end

View file

@ -48,7 +48,7 @@ describe Admin::SponsorshipLevelsController do
end
describe 'POST #create' do
context 'saves successfuly' do
context 'saves successfully' do
before(:each, run: true) do
post :create, params: { sponsorship_level: attributes_for(:sponsorship_level),
conference_id: conference.short_title }

View file

@ -62,7 +62,7 @@ describe Admin::TracksController do
end
describe 'POST #create' do
context 'saves successfuly' do
context 'saves successfully' do
before :each do
post :create, params: { track: attributes_for(:track), conference_id: conference.short_title }
end

View file

@ -55,7 +55,7 @@ describe Admin::UsersController do
end
describe 'POST #create' do
context 'saves successfuly' do
context 'saves successfully' do
before do
post :create, params: { user: attributes_for(:user) }
end

View file

@ -60,7 +60,7 @@ describe TracksController do
end
describe 'POST #create' do
context 'saves successfuly' do
context 'saves successfully' do
before :each do
post :create, params: { track: attributes_for(:track, :self_organized, short_name: 'my_track'), conference_id: conference.short_title }
end

View file

@ -22,7 +22,7 @@ feature Registration do
context 'who is not registered' do
scenario 'purchases and pays for a ticket succcessfully', feature: true, js: true do
scenario 'purchases and pays for a ticket successfully', feature: true, js: true do
skip 'broken'
visit root_path
@ -132,7 +132,7 @@ feature Registration do
expect(current_path).to eq(conference_tickets_path(conference.short_title))
end
scenario 'purchases one registration ticket of a different types' do
scenario 'purchases one registration ticket of different types' do
visit root_path
click_link 'Register'
@ -152,7 +152,7 @@ feature Registration do
context 'who is registered' do
scenario 'unregisters from conference, but ticket purchases dont delete', feature: true, js: true do
scenario "unregisters from conference, but ticket purchases don't delete", feature: true, js: true do
skip 'broken'
visit root_path