Sha256: c704f3f83608e75c1afd732b6e1a2bdf16e5db4fe3c6de843fff08df70b5e5f6

Contents?: true

Size: 425 Bytes

Versions: 37

Compression:

Stored size: 425 Bytes

Contents

require 'test_helper'
require "generators/push_type/field/field_generator"

module PushType
  class FieldGeneratorTest < Rails::Generators::TestCase
    tests FieldGenerator
    destination Rails.root.join('tmp/generators')

    before :all do
      prepare_destination
      run_generator ['rich_text']
    end

    it { assert_file 'app/fields/rich_text_field.rb', %r{class RichTextField < PushType::FieldType} }
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
push_type_core-0.12.1 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.12.0 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.12.0.beta.1 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.11.2 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.11.1 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.11.0.beta.2 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.11.0.beta.1 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.10.4 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.10.3 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.10.2 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.10.1 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.10.0 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.10.0.beta.5 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.10.0.beta.3 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.9.5 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.9.3 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.9.2 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.9.1 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.9.0 test/lib/generators/push_type/field_generator_test.rb
push_type_core-0.9.0.beta.4 test/lib/generators/push_type/field_generator_test.rb