mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge 9da43a52c3 into e267adf8b7
This commit is contained in:
commit
b8b2c4ba4c
7 changed files with 10 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue