mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Run rubocop when running the spec_rack task
This commit is contained in:
parent
91426162a7
commit
53fdc9d8ee
2 changed files with 5 additions and 2 deletions
5
Rakefile
5
Rakefile
|
@ -4,6 +4,9 @@ require 'rubygems'
|
|||
require 'rspec/core/rake_task'
|
||||
require 'cucumber/rake/task'
|
||||
require 'yard'
|
||||
require 'rubocop/rake_task'
|
||||
|
||||
RuboCop::RakeTask.new
|
||||
|
||||
desc 'Run all examples with Firefox'
|
||||
|
||||
|
@ -21,7 +24,7 @@ end
|
|||
end
|
||||
end
|
||||
|
||||
RSpec::Core::RakeTask.new(:spec_rack) do |t|
|
||||
RSpec::Core::RakeTask.new(:spec_rack, [] => :rubocop) do |t|
|
||||
t.rspec_opts = rspec_opts
|
||||
t.pattern = './spec{,/*/**}/*{_spec.rb}'
|
||||
end
|
||||
|
|
|
@ -124,7 +124,7 @@ Capybara::SpecHelper.spec '#has_css?' do
|
|||
expect(@session.has_css?("input[type='submit'][value='New Here']")).to be false
|
||||
end
|
||||
|
||||
it 'should should the default wait time if true is passed for :wait', requires: [:js] do
|
||||
it 'should should the default wait time if true is passed for :wait', requires: [:js] do
|
||||
expect(@session.has_css?("input[type='submit'][value='New Here']", wait: true)).to be true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue