Implement consistent admin interface
* Consistent route/model/controller/view layout * Get rid of unused photos, speakers, dietchoices, social_events controllers * Drop unused :public from Rooms and :description from CallForPapers
This commit is contained in:
parent
f6a87331be
commit
28063129c7
133 changed files with 1461 additions and 1461 deletions
13
spec/views/admin/call_for_papers/show.html.haml_spec.rb
Normal file
13
spec/views/admin/call_for_papers/show.html.haml_spec.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/call_for_papers/show' do
|
||||
|
||||
it 'renders call for papers details' do
|
||||
assign :conference, create(:conference)
|
||||
assign :call_for_paper, create(:call_for_paper)
|
||||
render
|
||||
expect(rendered).to include(1.day.ago.strftime('%A, %B %-d. %Y'))
|
||||
expect(rendered).to include(7.days.from_now.strftime('%A, %B %-d. %Y'))
|
||||
end
|
||||
|
||||
end
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/callforpapers/show' do
|
||||
|
||||
it 'renders callforpapers details' do
|
||||
assign :conference, create(:conference)
|
||||
assign :cfp, create(:call_for_papers)
|
||||
render
|
||||
expect(rendered).to include(1.day.ago.strftime('%Y-%m-%d'))
|
||||
expect(rendered).to include(7.days.from_now.strftime('%Y-%m-%d'))
|
||||
expect(rendered).to include('We call for papers')
|
||||
end
|
||||
|
||||
end
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/social_events/index' do
|
||||
|
||||
it 'renders social events' do
|
||||
@social_event = create(:social_event)
|
||||
assign :conference, @social_event.conference
|
||||
render
|
||||
expect(rendered).to include('Example Social Event')
|
||||
expect(rendered).to include('Lorem Ipsum Dolsum')
|
||||
expect(rendered).to include("#{Date.today.strftime('%Y')}")
|
||||
expect(rendered).to include("#{Date.today.strftime('%B')}")
|
||||
expect(rendered).to include("#{Date.today.strftime('%-d')}")
|
||||
end
|
||||
end
|
||||
|
|
@ -24,8 +24,8 @@ describe 'conference/show.html.haml' do
|
|||
start_date: Date.yesterday,
|
||||
end_date: Date.tomorrow)
|
||||
|
||||
@conference.call_for_papers = create(:call_for_papers, conference: @conference,
|
||||
include_cfp_in_splash: true)
|
||||
@conference.call_for_paper = create(:call_for_paper, conference: @conference,
|
||||
include_cfp_in_splash: true)
|
||||
|
||||
@conference.sponsorship_levels << create(:sponsorship_level, conference: @conference)
|
||||
@sponsorship_level = @conference.sponsorship_levels.first
|
||||
|
|
@ -50,7 +50,7 @@ describe 'conference/show.html.haml' do
|
|||
expect(view).to render_template(partial: 'conference/_registration')
|
||||
end
|
||||
|
||||
it 'renders call_for_papers partial' do
|
||||
it 'renders call_for_paper partial' do
|
||||
expect(rendered).to match(/We are ready to accept your proposals for sessions!/)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue