Sha256: 18ee04e5f2e40243988ca46fe91b4a4f105b908b2b5063d5f3d7aee7f5ff3b39
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
require 'spec_helper' describe Helena::Admin::VersionsController do routes { Helena::Engine.routes } let(:survey) { create :survey } let(:baseversion) { survey.versions.create version: 0 } context 'with authorization' do it 'deleting a version deletes also the associated sessions' do published_version = Helena::VersionPublisher.publish baseversion published_version.save create :session, survey: survey, version: published_version expect { delete :destroy, survey_id: survey, id: published_version }.to change { Helena::Session.count }.by(-1) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
helena-0.3.3 | spec/controllers/helena/admin/versions_controller_spec.rb |