Add rubocop to our build. (#5004)

This commit is contained in:
Guo Xiang Tan
2017-07-28 10:20:09 +09:00
committed by GitHub
parent ff4e295c4f
commit 5012d46cbd
871 changed files with 5480 additions and 6056 deletions

View File

@ -3,7 +3,7 @@ require 'rails_helper'
describe DirectoryItemsController do
it "requires a `period` param" do
expect{ xhr :get, :index }.to raise_error(ActionController::ParameterMissing)
expect { xhr :get, :index }.to raise_error(ActionController::ParameterMissing)
end
it "requires a proper `period` param" do
@ -11,7 +11,6 @@ describe DirectoryItemsController do
expect(response).not_to be_success
end
context "without data" do
context "and a logged in user" do
@ -26,7 +25,6 @@ describe DirectoryItemsController do
end
context "with data" do
before do
Fabricate(:user)