Skip to content

Commit

Permalink
Update for rubocop (and fix its version)
Browse files Browse the repository at this point in the history
  • Loading branch information
zverok committed Jun 27, 2018
1 parent 9085ac9 commit b179851
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Gemfile.lock
doc
.yardoc
.yardoc
pkg
4 changes: 2 additions & 2 deletions sho.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Gem::Specification.new do |s|
s.add_development_dependency 'fakefs'
s.add_development_dependency 'slim'

s.add_development_dependency 'rubocop'
s.add_development_dependency 'rubocop-rspec'
s.add_development_dependency 'rubocop', '~> 0.57.2'
s.add_development_dependency 'rubocop-rspec', '~> 1.27.0'

s.add_development_dependency 'rake'
s.add_development_dependency 'rubygems-tasks'
Expand Down
3 changes: 3 additions & 0 deletions spec/sho/configurator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

context 'when default base folder' do
before { sho.template :test, 'fake.slim', *args }

let(:path) { 'fake.slim' }

it { expect(view.instance_methods).to include(:test) }
Expand Down Expand Up @@ -112,6 +113,7 @@ def laymeout
sho.base_folder = 'app/views/details'
sho.template :test, 'fake.slim', *args
}

let(:params) { {} }
let(:path) { 'app/views/details/fake.slim' }

Expand All @@ -138,6 +140,7 @@ def laymeout

describe '#template_inline' do
before { sho.template_inline :test, *args }

let(:args) { [{slim: 'p It works!'}] }

it { expect(view.instance_methods).to include(:test) }
Expand Down

0 comments on commit b179851

Please sign in to comment.