diff --git a/features/nifty_layout.feature b/features/nifty_layout.feature index eea37f8..5fe241e 100644 --- a/features/nifty_layout.feature +++ b/features/nifty_layout.feature @@ -3,18 +3,28 @@ Feature: Nifty Layout Generator As a rails developer I want to generate a simple layout + Background: Create a new rails app + Given a new Rails 3.0.x app + Scenario: Generate normal application layout - Given a new Rails app When I run "rails g nifty:layout -f" Then I should see "stylesheet_link_tag "application"" in file "app/views/layouts/application.html.erb" Then I should see "h(page_title" in file "app/helpers/layout_helper.rb" - And I should see file "app/helpers/layout_helper.rb" - And I should see file "app/helpers/error_messages_helper.rb" - And I should see file "public/stylesheets/application.css" + And I should see the following files + | app/helpers/layout_helper.rb | + | app/helpers/error_messages_helper.rb | + | public/stylesheets/application.css | - Scenario: Generate named layout with haml and sass - Given a new Rails app - When I run "rails g nifty:layout FooBar --haml -f" - Then I should see "stylesheet_link_tag "foo_bar"" in file "app/views/layouts/foo_bar.html.haml" - And I should see file "public/stylesheets/sass/foo_bar.sass" + Scenario Outline: Generate named layout with haml... + When I run "rails g nifty:layout FooBar --