Sha256: 911b51b17b653e1a082370e76d4012d09f0b3365cdf6700ba5ed74e53dd27347
Contents?: true
Size: 827 Bytes
Versions: 1
Compression:
Stored size: 827 Bytes
Contents
Feature: sanity In order to keep hair on my head As a programmer I want to make sure the working stuff works Scenario: rspec/rails sanity test Given a simple rails application And the following spec: """ describe UsersController do before(:all) { @user = User.create(:name => 'bob') } describe 'GET #show' do context 'action' do before(:each) { get :show, :id => @user.id } its(:response) { should be_success } its(:response) { should render_template(:show) } end end end """ When I run rspec Then the output should contain: """ UsersController GET #show action response should be success response should render template :show """
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-rails-controller-0.1.2 | features/sanity.feature |