Skip to content

Commit

Permalink
fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
devton committed Mar 25, 2015
1 parent 038a95b commit e1e3653
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/policies/contribution_policy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@
end
end

permissions(:new?){ it_should_behave_like "create permissions" }
permissions(:new?){
['draft', 'deleted', 'rejected', 'successful', 'failed', 'waiting_funds', 'in_analysis'].each do |state|
it "should deny access if project is #{state}" do
contribution.project.update_attributes state: state
end
end
}

permissions(:create?){ it_should_behave_like "create permissions" }

Expand Down

0 comments on commit e1e3653

Please sign in to comment.