Skip to content

Commit 8f120b4

Browse files
committed
[browsermedia#669] Avoid creating duplicate directory
* No longer creates extra directory during new project generation.
1 parent b5800ad commit 8f120b4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

features/commands/new_projects.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Feature: New Project Generator
1616
And the file "hello/config/routes.rb" should contain "mount_browsercms"
1717
And the file "hello/db/seeds.rb" should contain "require File.expand_path('../browsercms.seeds.rb', __FILE__)"
1818
And a file named "hello/db/browsercms.seeds.rb" should exist
19+
And a directory named "hello/hello" should not exist
1920
And a file named "hello/config/initializers/browsercms.rb" should exist
2021
And a file named "hello/app/views/layouts/templates/default.html.erb" should exist
2122
And a file named "hello/config/initializers/devise.rb" should exist

lib/cms/commands/actions.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ def module_class
2929

3030
# Runs `bundle install` inside the correct project directory (unless --skip_bundle was passed to the command)
3131
def run_bundle_install
32-
inside current_project do
33-
run "bundle install" unless options[:skip_bundle]
34-
end
32+
run "bundle install" unless options[:skip_bundle]
3533
end
3634

3735
# Run `bundle update`, exiting if it doesn't work.

0 commit comments

Comments
 (0)