Skip to content

Commit

Permalink
Ensure that migrations are created within the dummy app
Browse files Browse the repository at this point in the history
This is a regression test for #1580
  • Loading branch information
radar committed Jun 6, 2012
1 parent 0ad68b2 commit 151d2f4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cmd/features/extension_generator.feature
@@ -0,0 +1,14 @@
Feature: Extension generator

Background:
When I successfully run `spree extension brands`
And I cd to "spree_brands"
And I successfully run `bundle exec rake test_app`

Scenario: Generating a model within an extension, then installing migrations
And I successfully run `bundle exec rails g model spree/brands`
Then a file named "app/models/spree.rb" should exist
And a file named "app/models/spree/brands.rb" should exist
And I cd to "spec/dummy"
And I successfully run `ls db/migrate`
And the output should contain "create_spree_brands"

0 comments on commit 151d2f4

Please sign in to comment.