Skip to content

Commit

Permalink
fix(MM 4.0): adjust filesystem poll step_definition for MM 4.0 compat…
Browse files Browse the repository at this point in the history
…ibility
  • Loading branch information
stevenosloan committed May 24, 2016
1 parent 76e720e commit 0461d15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion features/step_definitions/server_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
end

Then /^the filesystem is polled$/ do
@server_inst.files.poll_once!
if @server_inst.files.respond_to?(:poll_once!)
@server_inst.files.poll_once!
elsif @server_inst.files.respond_to?(:find_new_files!)
@server_inst.files.find_new_files!
end
end

Then /^sprockets paths should include "([^\"]*)"$/ do |path|
Expand Down

0 comments on commit 0461d15

Please sign in to comment.