Sha256: cc4af165ddaa8d4903430403d6ee105de481156ff34f59bdc7dc081e20acd28f

Contents?: true

Size: 852 Bytes

Versions: 3

Compression:

Stored size: 852 Bytes

Contents

require 'spec_helper'
require 'genspec'

describe 'tableficate:theme' do
  with_args :foo do
    it 'should generate app/views/tableficate/foo/ with all files' do
      subject.should generate('app/views/tableficate/foo')
      subject.should generate('app/views/tableficate/foo/_table.html.erb')
    end
  end

  with_args :foo, 'table_for' do
    it 'should generate a single file in app/views/tableficate/foo/' do
      subject.should generate('app/views/tableficate/foo')
      subject.should generate('app/views/tableficate/foo/_table_for.html.erb')
    end
  end

  with_args :foo, 'filters/form' do
    it 'should generate a single file in app/views/tableficate/foo/filters' do
      subject.should generate('app/views/tableficate/foo/filters')
      subject.should generate('app/views/tableficate/foo/filters/_form.html.erb')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tableficate-0.3.2 spec/generators/tableficate_theme_spec.rb
tableficate-0.3.1 spec/generators/tableficate_theme_spec.rb
tableficate-0.3.0 spec/generators/tableficate_theme_spec.rb