Sha256: 7ffc8089916f4de449e3df47388accfbda7b106a735921674e056ded8e6cc069

Contents?: true

Size: 417 Bytes

Versions: 48

Compression:

Stored size: 417 Bytes

Contents

require 'test_helper'

class ErbScaffoldGeneratorExtensionsTest < ActiveSupport::TestCase

  def setup
    @gen = Erb::Generators::ScaffoldGenerator.new [ 'fake_item' ]
  end

  test 'should have the correct available_views' do
    req = %w(index new edit show _list _form)
    actual = @gen.send :available_views
    req.each do |view|
      assert actual.include?(view), "Missing '#{view}' view."
    end
  end

end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
incline-0.3.14 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.3.13 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.3.12 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.3.11 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.3.10 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.3.9 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.3.8 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.3.7 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.3.6 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.3.5 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.3.4 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.3.3 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.3.2 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.3.1 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.3.0 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.2.36 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.2.35 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.2.34 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.2.28 test/extensions/erb_scaffold_generator_extensions_test.rb
incline-0.2.27 test/extensions/erb_scaffold_generator_extensions_test.rb