Sha256: e208d5c3d11b192847733d2bc7bfef3069e4712efe44cc66eca9c3ed5caee332
Contents?: true
Size: 591 Bytes
Versions: 33
Compression:
Stored size: 591 Bytes
Contents
require 'test_helper' require "generators/push_type/structure/structure_generator" module PushType class StructureGeneratorTest < Rails::Generators::TestCase tests StructureGenerator destination Rails.root.join('tmp/generators') before :all do prepare_destination run_generator ['location', 'foo', 'bar:text'] end it { assert_file 'app/models/location.rb', %r{class Location < PushType::Structure} } it { assert_file 'app/models/location.rb', %r{field :foo, :string} } it { assert_file 'app/models/location.rb', %r{field :bar, :text} } end end
Version data entries
33 entries across 33 versions & 1 rubygems