Skip to content

Commit

Permalink
Rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkrone committed Dec 17, 2014
1 parent 2571a49 commit 0963a3a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 37 deletions.
4 changes: 3 additions & 1 deletion .rubocop.yml
@@ -1 +1,3 @@
inherit_from: .rubocop_todo.yml
AllCops:
Exclude:
- 'metadata.rb'
23 changes: 0 additions & 23 deletions .rubocop_todo.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Berksfile
@@ -1,4 +1,4 @@
source "https://supermarket.getchef.com"
source 'https://supermarket.getchef.com'

metadata

Expand Down
2 changes: 1 addition & 1 deletion Gemfile
@@ -1,4 +1,4 @@
source "https://rubygems.org"
source 'https://rubygems.org'

gem 'berkshelf'
gem 'serverspec'
Expand Down
18 changes: 9 additions & 9 deletions Rakefile
@@ -1,28 +1,28 @@
task default: "all"
task default: 'all'

desc "Run all tests"
desc 'Run all tests'
task all: [:rubocop, :foodcritic, :chefspec]

# rubocop style checker
require "rubocop/rake_task"
require 'rubocop/rake_task'
RuboCop::RakeTask.new

# foodcritic chef lint
require "foodcritic"
require 'foodcritic'
FoodCritic::Rake::LintTask.new do |t|
t.options = { fail_tags: ["any"] }
t.options = { fail_tags: ['any'] }
end

# chefspec unit tests
require "rspec/core/rake_task"
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:chefspec) do |t|
t.rspec_opts = "--color --format progress"
t.rspec_opts = '--color --format progress'
end

# test-kitchen integration tests
begin
require "kitchen/rake_tasks"
require 'kitchen/rake_tasks'
Kitchen::RakeTasks.new
rescue LoadError
task("kitchen:all") { puts "Unable to run `test-kitchen`" }
task('kitchen:all') { puts 'Unable to run `test-kitchen`' }
end
1 change: 0 additions & 1 deletion recipes/default.rb
Expand Up @@ -30,4 +30,3 @@
supports start: true, stop: true, restart: true, status: true
action [:enable, :start]
end

2 changes: 1 addition & 1 deletion test/integration/default/serverspec/lsyncd_spec.rb
Expand Up @@ -2,7 +2,7 @@

set :backend, :exec

describe "Lsyncd" do
describe 'Lsyncd' do
describe service('lsyncd') do
it { should be_enabled }
end
Expand Down

0 comments on commit 0963a3a

Please sign in to comment.