Project

General

Profile

« Previous | Next » 

Revision 404ead2a

Added by Marek Hulán over 7 years ago

Fixes #17403 - enable exporting of templates

View differences:

test/controllers/api/v2/ptables_controller_test.rb
assert_equal(template['template'], original_ptable.template)
end
test 'export should export the erb of the template' do
ptable = FactoryGirl.create(:ptable)
get :export, { :id => ptable.to_param }
assert_response :success
assert_equal 'text/plain', response.content_type
assert_equal ptable.to_erb, response.body
end
test 'clone name should not be blank' do
post :clone, { :id => FactoryGirl.create(:ptable).to_param,
:ptable => {:name => ''} }

Also available in: Unified diff