Skip to content

Commit

Permalink
Add rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
kugaevsky committed Mar 29, 2015
1 parent 3a8ee40 commit 627df05
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,5 @@
AllCops:
Excludes:
- config/unicorn.rb
- db/**/*
RunRailsCops: true
6 changes: 3 additions & 3 deletions db/migrate/20140902180100_create_friendly_id_slugs.rb
@@ -1,9 +1,9 @@
class CreateFriendlyIdSlugs < ActiveRecord::Migration
def change
create_table :friendly_id_slugs do |t|
t.string :slug, :null => false
t.integer :sluggable_id, :null => false
t.string :sluggable_type, :limit => 50
t.string :slug, null: false
t.integer :sluggable_id, null: false
t.string :sluggable_type, limit: 50
t.string :scope
t.datetime :created_at
end
Expand Down
12 changes: 6 additions & 6 deletions spec/controllers/mailchimp_hooks_controller_spec.rb
Expand Up @@ -10,13 +10,13 @@
type: 'unsubscribe',
fired_at: '2014-12-08 18:20:30',
data: {
action: "unsub",
reason: "manual",
id: "27b600e23a",
action: 'unsub',
reason: 'manual',
id: '27b600e23a',
email: subscribed_user.email,
email_type: "html",
ip_opt: "54.78.87.176",
web_id: "125886081",
email_type: 'html',
ip_opt: '54.78.87.176',
web_id: '125886081',
list_id: '51957c4f07'
}
}
Expand Down
1 change: 0 additions & 1 deletion spec/models/user_spec.rb
Expand Up @@ -42,5 +42,4 @@

it { expect(user.subscription).to eq true }
it { expect(unsubscribed_user.subscription).to eq false }

end
6 changes: 3 additions & 3 deletions spec/rails_helper.rb
@@ -1,11 +1,11 @@
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
ENV['RAILS_ENV'] ||= 'test'

require "codeclimate-test-reporter"
require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start

require 'spec_helper'
require File.expand_path("../../config/environment", __FILE__)
require File.expand_path('../../config/environment', __FILE__)
require 'rspec/rails'
require 'shoulda/matchers'
# Add additional requires below this line. Rails is not loaded until this point!
Expand Down
5 changes: 2 additions & 3 deletions spec/spec_helper.rb
Expand Up @@ -38,8 +38,8 @@
mocks.verify_partial_doubles = true
end

# The settings below are suggested to provide a good initial experience
# with RSpec, but feel free to customize to your heart's content.
# The settings below are suggested to provide a good initial experience
# with RSpec, but feel free to customize to your heart's content.

# These two settings work together to allow you to limit a spec run
# to individual examples or groups you care about by tagging them with
Expand Down Expand Up @@ -81,5 +81,4 @@
# test failures related to randomization by passing the same `--seed` value
# as the one that triggered the failure.
Kernel.srand config.seed

end

0 comments on commit 627df05

Please sign in to comment.