Sha256: eb6ba8a92790a48742b57ca1953e66b5abf2a9e9abf589bc99db4c1a2d389c22

Contents?: true

Size: 755 Bytes

Versions: 35

Compression:

Stored size: 755 Bytes

Contents

require 'spec_helper_integration'
require 'generators/doorkeeper/application_owner_generator'

describe 'Doorkeeper::ApplicationOwnerGenerator' do
  include GeneratorSpec::TestCase

  tests Doorkeeper::ApplicationOwnerGenerator
  destination ::File.expand_path('../tmp/dummy', __FILE__)

  describe 'after running the generator' do
    before :each do
      prepare_destination
      FileUtils.mkdir(::File.expand_path('config', Pathname(destination_root)))
      FileUtils.copy_file(::File.expand_path('../templates/routes.rb', __FILE__), ::File.expand_path('config/routes.rb', Pathname.new(destination_root)))
      run_generator
    end

    it 'creates a migration' do
      assert_migration 'db/migrate/add_owner_to_application.rb'
    end
  end
end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
doorkeeper-mongodb-4.0.1 spec/generators/application_owner_generator_spec.rb
doorkeeper-mongodb-4.0.0 spec/generators/application_owner_generator_spec.rb
doorkeeper-4.2.6 spec/generators/application_owner_generator_spec.rb
doorkeeper-4.2.5 spec/generators/application_owner_generator_spec.rb
doorkeeper-4.2.0 spec/generators/application_owner_generator_spec.rb
doorkeeper-4.1.0 spec/generators/application_owner_generator_spec.rb
doorkeeper-4.0.0 spec/generators/application_owner_generator_spec.rb
doorkeeper-4.0.0.rc4 spec/generators/application_owner_generator_spec.rb
doorkeeper-4.0.0.rc3 spec/generators/application_owner_generator_spec.rb
doorkeeper-4.0.0.rc2 spec/generators/application_owner_generator_spec.rb
doorkeeper-4.0.0.rc1 spec/generators/application_owner_generator_spec.rb
doorkeeper-3.1.0 spec/generators/application_owner_generator_spec.rb
doorkeeper-3.0.1 spec/generators/application_owner_generator_spec.rb
doorkeeper-2.2.2 spec/generators/application_owner_generator_spec.rb
doorkeeper-3.0.0 spec/generators/application_owner_generator_spec.rb
doorkeeper-3.0.0.rc2 spec/generators/application_owner_generator_spec.rb
doorkeeper-3.0.0.rc1 spec/generators/application_owner_generator_spec.rb
doorkeeper-2.2.1 spec/generators/application_owner_generator_spec.rb
doorkeeper-2.2.0 spec/generators/application_owner_generator_spec.rb
doorkeeper-2.1.4 spec/generators/application_owner_generator_spec.rb