Skip to content
materials for getting started with cucumber
Pull request Compare This branch is even with blazingcloud:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
step_definitions
README.txt
json_notes.txt
manage_news.feature
stories_json.feature
story_steps.rb

README.txt

sudo gem install rspec-rails
sudo gem install cucumber-rails
sudo gem install webrat

rails news
cd news/
./script/generate rspec
./script/generate cucumber
vi features/manage_news.feature 
rake cucumber
rake db:migrate
rake cucumber
rake cucumber
./script/generate scaffold story title:string content:text
vi config/routes.rb 
rake db:migrate
rake cucumber
vi app/views/stories/index.html.erb
script/server

# not required by cucumber
rm public/index.html 


./script/generate rspec_model story
vi spec/models/story_spec.rb 
# you might write validation tests in rspec


Something went wrong with that request. Please try again.