Sha256: a92a8d13018a75816101f00848b4a89f0beaa333756ef3b067b900d606d00107
Contents?: true
Size: 1.45 KB
Versions: 7
Compression:
Stored size: 1.45 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 attr_accessible :one, :two\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' class Alpha::BetaTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end doctest: fixture file exists >> File.exist? 'test/fixtures/alpha/beta.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.connection.schema_cache.clear! >> Alpha::Beta.reset_column_information >> Alpha::Beta => Alpha::Beta(id: integer, one: string, two: integer)
Version data entries
7 entries across 7 versions & 1 rubygems