Skip to content

Commit

Permalink
adds extra expect in spec to avoid loadtime errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanxu committed Sep 1, 2015
1 parent 2ed0486 commit f02f1a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/features/admin/organizations_spec.rb
Expand Up @@ -70,6 +70,7 @@
organization = create(:organization)

visit admin_organizations_path
expect(current_path).to eq(admin_organizations_path)
expect(page).to have_link('Verify')
expect(page).to have_link('Reject')

Expand All @@ -84,6 +85,7 @@
organization = create(:organization, :verified)

visit admin_organizations_path
expect(current_path).to eq(admin_organizations_path)
expect(page).to have_content ('Verified')
expect(page).to_not have_link('Verify')
expect(page).to have_link('Reject')
Expand All @@ -99,6 +101,7 @@
organization = create(:organization, :rejected)

visit admin_organizations_path
expect(current_path).to eq(admin_organizations_path)
expect(page).to have_link('Verify')
expect(page).to_not have_link('Reject', exact: true)

Expand Down

0 comments on commit f02f1a9

Please sign in to comment.