Skip to content

Commit

Permalink
Restore Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tfausak committed Nov 17, 2014
1 parent 3dee008 commit 820c8a9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ AllCops:
- vendor/**/*
Documentation:
Enabled: false
Metrics/ClassLength:
Max: 150
10 changes: 10 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# coding: utf-8

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

RSpec::Core::RakeTask.new
RuboCop::RakeTask.new

task default: %w(spec rubocop)
4 changes: 2 additions & 2 deletions spec/stoplight/notifier/io_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
it 'writes the message' do
error = nil
notifier.notify(light, from_color, to_color, error)
expect(io.string)
.to eql(notifier.formatter.call(light, from_color, to_color, error) + "\n")
message = notifier.formatter.call(light, from_color, to_color, error)
expect(io.string).to eql("#{message}\n")
end
end
end
3 changes: 3 additions & 0 deletions stoplight.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'coveralls', '~> 0.7'
gem.add_development_dependency 'fakeredis', '~> 0.5'
gem.add_development_dependency 'hipchat', '~> 1.4'
gem.add_development_dependency 'rake', '~> 10.3'
gem.add_development_dependency 'redis', '~> 3.1'
gem.add_development_dependency 'rspec', '~> 3.1'
gem.add_development_dependency 'rubocop', '~> 0.27'
gem.add_development_dependency 'timecop', '~> 0.7'
gem.add_development_dependency 'yard', '~> 0.8'
end

0 comments on commit 820c8a9

Please sign in to comment.