Sha256: 852cc32bb7ffddf627539c9f9e9bbf28819004dab180be5e3a6dd7d0e37d5120
Contents?: true
Size: 847 Bytes
Versions: 18
Compression:
Stored size: 847 Bytes
Contents
# frozen_string_literal: true require "spec_helper" require "generators/doorkeeper/confidential_applications_generator" describe "Doorkeeper::ConfidentialApplicationsGenerator" do include GeneratorSpec::TestCase tests Doorkeeper::ConfidentialApplicationsGenerator 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/add_confidential_to_applications.rb" do |migration| assert migration.include?("ActiveRecord::Migration[5.0]\n") assert migration.include?(":confidential") end end end end
Version data entries
18 entries across 18 versions & 1 rubygems