Sha256: a6df40362219d6809a3c7fdce1b061a3598e1ca432e36d3d87a836c72b521dc0
Contents?: true
Size: 810 Bytes
Versions: 1
Compression:
Stored size: 810 Bytes
Contents
require 'spec_helper' describe FamilyGallery::MultiplePicturesController do let(:group) { create :group } let(:admin) { create :admin } routes { FamilyGallery::Engine.routes } render_views before do sign_in admin end it '#new' do get :new, group_id: group.id expect(response).to be_success end it '#create' do post :create, group_id: group.id, multiple_pictures: {files: [ fixture_file_upload(Rails.root.join('..', '..', 'spec', 'test_pictures', 'sigrid.jpg'), "image/jpeg"), fixture_file_upload(Rails.root.join('..', '..', 'spec', 'test_pictures', 'sigrid.jpg'), "image/jpeg"), fixture_file_upload(Rails.root.join('..', '..', 'spec', 'test_pictures', 'sigrid.jpg'), "image/jpeg") ]} expect(response).to redirect_to group_url(group) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
family_gallery-0.0.8 | spec/controllers/family_gallery/multiple_pictures_controller_spec.rb |