Sha256: fff31bcae7e7d4c3cb15c28def6751ca3bb65c106e54bcd5c7ed2d82c7a1d69c
Contents?: true
Size: 960 Bytes
Versions: 14
Compression:
Stored size: 960 Bytes
Contents
Feature: Nifty Layout Generator In order to have a layout As a rails developer I want to generate a simple layout 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" 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" And I should see file "app/helpers/layout_helper.rb"
Version data entries
14 entries across 14 versions & 4 rubygems