test: clean up spec description typos
Signed-off-by: Mridankan Mandal <xerontitan90@gmail.com>
This commit is contained in:
parent
e267adf8b7
commit
9da43a52c3
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue