Remove cocoon and volunteers tests.

This commit is contained in:
Stella Rouzi 2016-07-13 06:51:36 +03:00
parent 7a95c43a57
commit 9379586fad
6 changed files with 3 additions and 165 deletions

View file

@ -1,28 +0,0 @@
require 'spec_helper'
describe 'admin/volunteers/index' do
it 'renders volunteers days as vdays' do
@vday = create(:vday)
@vday.conference.update_attributes(use_volunteers: true, use_vdays: true)
assign :conference, @vday.conference
render
expect(rendered).to have_selector(
"input[checked='checked'][type='checkbox'][value='1']", count: 2)
expect(rendered).to include("#{Date.today.strftime('%Y')}")
expect(rendered).to include("#{Date.today.strftime('%B')}")
expect(rendered).to include("#{Date.today.strftime('%d')}")
expect(rendered).to include('Lorem Ipsum dolsum')
end
it 'renders volunteers positions as vpositions' do
@vposition = create(:vposition)
@vposition.conference.update_attributes(
use_vpositions: true, use_volunteers: true, use_vdays: true)
assign :conference, @vposition.conference
render
expect(rendered).to include("#{Date.today}")
expect(rendered).to include('Example Volunteer Position')
expect(rendered).to include('Lorem Ipsum dolsum')
end
end

View file

@ -1,5 +0,0 @@
require 'spec_helper'
describe 'admin/volunteers/show' do
pending "add some examples to (or delete) #{__FILE__}"
end