Sha256: c7cc4f4c45a9e53c0d5864ada4ba5549f383e9f7388c065fd1a4a39356019324

Contents?: true

Size: 1.38 KB

Versions: 29

Compression:

Stored size: 1.38 KB

Contents

doctest: prepare testapp environment
doctest_require: 'prepare_testapp'

doctest: generate hobo:model
>> Rails::Generators.invoke 'hobo:model', %w(alpha/beta one:string two:integer)


doctest: model file exists
>> File.exist? 'app/models/alpha/beta.rb'
=> true

doctest: model content matches
>> File.read 'app/models/alpha/beta.rb'
=> "class Alpha::Beta < ActiveRecord::Base\n\n  fields do\n    one :string\n    two :integer\n  end\n\nend\n"

doctest: module file exists
>> File.exist? 'app/models/alpha.rb'
=> true

doctest: module content matches
>> File.read 'app/models/alpha.rb'
=> "module Alpha\n  def self.table_name_prefix\n    'alpha_'\n  end\nend\n"


doctest: test file exists
>> File.exist? 'test/unit/alpha/beta_test.rb'
=> true

doctest: test content matches
>> File.read 'test/unit/alpha/beta_test.rb'
=> "require 'test_helper'\n\nclass Alpha::BetaTest < ActiveSupport::TestCase\n  # Replace this with your real tests.\n  test \"the truth\" do\n    assert true\n  end\nend\n"


doctest: fixture file exists
>> File.exist? 'test/fixtures/alpha/betas.yml'
=> true


doctest: generate hobo:migration
>> Rails::Generators.invoke 'hobo:migration', %w(-n -m)

doctest: schema.rb file exists
>> File.exist? 'db/schema.rb'
=> true

doctest: db file exists
>> File.exist? 'db/development.sqlite3'
=> true

doctest: Alpha::Beta class exists
>> Alpha::Beta
=> Alpha::Beta(id: integer, one: string, two: integer)

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
hobo_fields-1.3.3 test/generators.rdoctest
hobo_fields-1.3.2 test/generators.rdoctest
hobo_fields-1.3.1 test/generators.rdoctest
hobo_fields-1.3.0 test/generators.rdoctest
hobo_fields-1.3.0.RC4 test/generators.rdoctest
hobo_fields-1.3.0.RC3 test/generators.rdoctest
hobo_fields-1.3.0.RC2 test/generators.rdoctest
hobo_fields-1.3.0.RC1 test/generators.rdoctest
hobo_fields-1.3.0.RC test/generators.rdoctest
hobo_fields-1.3.0.pre31 test/generators.rdoctest
hobo_fields-1.3.0.pre29 test/generators.rdoctest
hobo_fields-1.3.0.pre28 test/generators.rdoctest
hobo_fields-1.3.0.pre27 test/generators.rdoctest
hobo_fields-1.3.0.pre26 test/generators.rdoctest
hobo_fields-1.3.0.pre25 test/generators.rdoctest
hobo_fields-1.3.0.pre24 test/generators.rdoctest
hobo_fields-1.3.0.pre23 test/generators.rdoctest
hobo_fields-1.3.0.pre22 test/generators.rdoctest
hobo_fields-1.3.0.pre21 test/generators.rdoctest
hobo_fields-1.3.0.pre20 test/generators.rdoctest