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

Version Path
doorkeeper-5.1.2 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.2.6 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.3.3 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.1.1 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.2.5 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.3.2 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.4.0.rc1 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.2.4 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.3.1 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.3.0 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.2.3 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.2.2 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.2.1 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.2.0 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.2.0.rc3 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.2.0.rc2 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.2.0.rc1 spec/generators/confidential_applications_generator_spec.rb
doorkeeper-5.1.0 spec/generators/confidential_applications_generator_spec.rb