Sha256: 455452d258bcdf29c8804f27afebe175dac3d843e9028ee7701547a623587399

Contents?: true

Size: 694 Bytes

Versions: 4

Compression:

Stored size: 694 Bytes

Contents

require 'spec_helper'
require 'generator_spec'
require 'generators/tasuku/views/views_generator'

describe 'rails g tasuku:views' do
  destination File.expand_path('../../../../tmp', __FILE__)
  tests Tasuku::ViewsGenerator

  before(:each) do
    prepare_destination
    run_generator
  end

  it 'copies the view files to your project' do
    assert_file 'app/views/tasuku/tasks/show.html.erb'
    assert_file 'app/views/tasuku/tasks/_task.html.erb'

    assert_file 'app/views/tasuku/taskables/image/requests/_request.html.erb'
    assert_file 'app/views/tasuku/taskables/image/responses/create.html.erb'
    assert_file 'app/views/tasuku/taskables/image/responses/_form.html.erb'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tasuku-1.1.0 spec/lib/generators/views_generators_spec.rb
tasuku-1.0.1 spec/lib/generators/views_generators_spec.rb
tasuku-0.1.1 spec/lib/generators/views_generators_spec.rb
tasuku-0.1.0 spec/lib/generators/views_generators_spec.rb