Sha256: de715fa9d5c45b779b2ab8a50cd42a11a5992895b214044f022490d5ed094077
Contents?: true
Size: 686 Bytes
Versions: 1
Compression:
Stored size: 686 Bytes
Contents
require 'spec_helper' require 'generator_spec' require 'generators/tasks/views/views_generator' describe 'rails g tasks:views' do destination File.expand_path('../../../../tmp', __FILE__) tests Tasks::ViewsGenerator before(:each) do prepare_destination run_generator end it 'copies the view files to your project' do assert_file 'app/views/tasks/tasks/show.html.erb' assert_file 'app/views/tasks/tasks/_task.html.erb' assert_file 'app/views/tasks/taskables/image/requests/_request.html.erb' assert_file 'app/views/tasks/taskables/image/responses/create.html.erb' assert_file 'app/views/tasks/taskables/image/responses/_form.html.erb' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tasuku-0.0.1 | spec/lib/generators/views_generators_spec.rb |