Sha256: ffabbbb2e0ef2745c64d21a986e86d6cb9e6b1f46b37989bb57e8079b085d990

Contents?: true

Size: 779 Bytes

Versions: 1

Compression:

Stored size: 779 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

1 entries across 1 versions & 1 rubygems

Version Path
couchkeeper-0.6.7 spec/generators/application_owner_generator_spec.rb