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"

Feature: Extension generator

  Scenario: Generating a model within an extension
    When I successfully run `spree extension brands`
    And I cd to "spree_brands"
    And I successfully run `pwd`
    And I successfully run `bundle exec rake test_app`
    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

Revert "Ensure that migrations are created within the dummy app"
Revert "Ensure that migrations are created within the dummy app"

This reverts commit 373b86ebd4ef37e0deec229eeb10d0562177ff75.

Couldn't get this test to work reliably
