Sha256: 086ba450b19ab708272a46b290d284074f1a97c4d800d48fc2d655a9a203bd63
Contents?: true
Size: 1.01 KB
Versions: 6
Compression:
Stored size: 1.01 KB
Contents
require 'spec_helper_integration' require 'generators/doorkeeper/install_generator' describe 'Doorkeeper::InstallGenerator' do include GeneratorSpec::TestCase tests Doorkeeper::InstallGenerator 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/create_doorkeeper_tables.rb" end it "creates an initializer file" do assert_file 'config/initializers/doorkeeper.rb' end it "copies the locale file" do assert_file 'config/locales/doorkeeper.en.yml' end it "adds sample route" do assert_file "config/routes.rb", /mount Doorkeeper::Engine/ end end end
Version data entries
6 entries across 6 versions & 1 rubygems