spec/requests/projects/raw_data/update_spec.rb
Block has too many lines. [33/25] Open
Open
RSpec.describe 'RawData update', type: :request do
before(:each) do
@project = FactoryGirl.create :project
@raw_datum = FactoryGirl.create :raw_datum,
data: File.new("#{Rails.root}/spec/fixtures/text/valid1.md"),
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Line is too long. [94/80] Open
Open
expect(response.header['Location'].gsub(/\?.*/, '')).to eq(project_raw_data_url(@project))
- Exclude checks
Line is too long. [113/80] Open
Open
expect(File.new(raw_datum.data.path).read).to eq(File.new("#{Rails.root}/spec/fixtures/text/valid2.md").read)
- Exclude checks
Line is too long. [99/80] Open
Open
data: fixture_file_upload("#{Rails.root}/spec/fixtures/text/valid2.md", 'text/plain')
- Exclude checks
Line is too long. [115/80] Open
Open
data: fixture_file_upload("#{Rails.root}/spec/fixtures/text/invalid.bin", 'application/octet-stream')
- Exclude checks
Incorrect indentation detected (column 0 instead of 4). Open
Open
# expect(raw_datum).to eq(@raw_datum)
- Read upRead up
- Exclude checks
This cops checks the indentation of comments.
Example:
# bad
# comment here
def method_name
end
# comment here
a = 'hello'
# yet another comment
if true
true
end
# good
# comment here
def method_name
end
# comment here
a = 'hello'
# yet another comment
if true
true
end
Line is too long. [97/80] Open
Open
data: File.new("#{Rails.root}/spec/fixtures/text/valid1.md"),
- Exclude checks