-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Payments tab in the Navbar #294
Conversation
Current Code Coverage Percent of this PR:98.18 %Files having coverage below 100%
|
app/views/partial/_navbar.html.erb
Outdated
@@ -118,6 +119,11 @@ | |||
<%= t('navbar.reports') %> | |||
</a> | |||
<% end %> | |||
<% if current_user.has_owner_or_admin_role?(current_company) %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use PaymentPolicy here policy(:payment).index?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
app/views/partial/_navbar.html.erb
Outdated
@@ -152,6 +158,11 @@ | |||
<%= t('navbar.reports') %> | |||
</a> | |||
<% end %> | |||
<% if current_user.has_owner_or_admin_role?(current_company) %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use PaymentPolicy here policy(:payment).index?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
spec/requests/payments/index_spec.rb
Outdated
end | ||
end | ||
|
||
context "when user is a employee" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
context "when user is a employee" do | |
context "when the user is an employee" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
LGTM |
Added Payments tab
Type of change
Checklist: