Skip to content

Instantly share code, notes, and snippets.

# I think authorization needs to be done mainly for **controllers** to make sure your authorization is working correctly with your controllers. So to make it **DRY** you can implement your own `matcher` to be used like this
let!(:user) {create :user}
before { login_user_request user}
it "grants admin access to show action" do
expect{ get :show, {id: user.id} }.to be_authorized
end
it "denies user access to edit action" do
expect{ get :edit, {id: user.id} }.to be_un_authorized
[user]
name = Moustafa Samir
email = [email protected]
color = true
[push]
default = upstream
[pull]
default = current
[color]
ui = true
{
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"detect_slow_plugins": false,
"enable_tab_scrolling": false,
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"font_size": 13.0,
"highlight_line": false,
"highlight_modified_tabs": true,
Better Coffeescript
Better Rspec
Git
GitGutter
JSTL syntax
JSX
package control
Rails migration list
RuboCop
Ruby Slim