Sha256: fb642c79e4186b90254720c8b0348c62615c83b659533526aaf34c6c6fc252a1
Contents?: true
Size: 983 Bytes
Versions: 3
Compression:
Stored size: 983 Bytes
Contents
Feature: Nifty Scaffold Generator In order to manage a resource As a rails developer I want to generate a model, controller, and views for that resource Scenario: Generate scaffold for simple resource Given a new Rails app When I run "rails g nifty:scaffold Project name:string" Then I should see the following files | app/models/project.rb | | app/controllers/projects_controller.rb | | app/helpers/projects_helper.rb | | app/views/projects/index.html.erb | | app/views/projects/show.html.erb | | app/views/projects/new.html.erb | | app/views/projects/edit.html.erb | | db/migrate | And I should see "resources :projects" in file "config/routes.rb" When I run "rails g nifty:layout -f" And I run "rake db:migrate" And I add "gem 'mocha', :group => :test" to file "Gemfile" Then I should successfully run "rake test"
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
corntrace-nifty-generators-0.4.1 | features/nifty_scaffold.feature |
corntrace-nifty-generators-0.4.0 | features/nifty_scaffold.feature |
nifty-generators-0.4.0 | features/nifty_scaffold.feature |