Sha256: ca9c23acb2bfcc388c18e3f3871aef300f6f56714f1d42b99fb3df2140f1154d
Contents?: true
Size: 400 Bytes
Versions: 7
Compression:
Stored size: 400 Bytes
Contents
require 'spec_helper' describe 'destroying a record' do before :each do login give_permission("Person") @person = create :person visit edit_outpost_person_path(@person) end it "Deletes the record and redirects to index" do click_link "Delete" current_path.should eq outpost_people_path page.should have_css ".alert-success" Person.count.should eq 0 end end
Version data entries
7 entries across 7 versions & 1 rubygems