Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
Applying patch to master
Browse files Browse the repository at this point in the history
  • Loading branch information
kierk committed Sep 28, 2018
1 parent 9bb71e9 commit ef46bc0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def initialize(user)
can :redcap, [ResponseSet, Question, Section, Survey], status: 'published'
can :epi_info, [Section, Survey], status: 'published'
can :spreadsheet, [Survey], status: 'published'
can :duplicate_count, [Survey], status: 'published'
can :read, User
end
end
Expand Down
9 changes: 9 additions & 0 deletions features/manage_surveys.feature
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ Feature: Manage Surveys
And I should see "Version 1 (Trial Use)"
And I should see "Visibility: Draft (authors and publishers only)"

Scenario: Show published Survey to unauthenticated user
Given I have a published Survey with the name "Test Survey" and the description "Survey description"
When I go to the list of Surveys
And I click on the menu link for the Survey with the name "Test Survey"
And I click on the option to Details the Survey with the name "Test Survey"
Then I should see "Test Survey"
And I should see "Survey description"
And I should not see "Curate"

Scenario: Send a Draft Survey to a Publisher
Given I have a Survey with the name "Test Survey" and the description "Survey description"
And I have a publisher "[email protected]" with the first name "Johnny" and last name "Test"
Expand Down

0 comments on commit ef46bc0

Please sign in to comment.