Sha256: 47a6ee28ddc34115bb2e4fc16a2766e2fae8f1c6bdaaaab6af65ce9f163d8238
Contents?: true
Size: 742 Bytes
Versions: 18
Compression:
Stored size: 742 Bytes
Contents
# frozen_string_literal: true require "spec_helper" require "generators/doorkeeper/migration_generator" describe "Doorkeeper::MigrationGenerator" do include GeneratorSpec::TestCase tests Doorkeeper::MigrationGenerator destination ::File.expand_path("../tmp/dummy", __FILE__) describe "after running the generator" do before :each do prepare_destination end it "creates a migration with a version specifier" do stub_const("ActiveRecord::VERSION::MAJOR", 5) stub_const("ActiveRecord::VERSION::MINOR", 0) run_generator assert_migration "db/migrate/create_doorkeeper_tables.rb" do |migration| assert migration.include?("ActiveRecord::Migration[5.0]\n") end end end end
Version data entries
18 entries across 18 versions & 1 rubygems