# Running tests for output file plugin

**URL:** <https://discuss.elastic.co/t/running-tests-for-output-file-plugin/205979>\
**Category:** Logstash\
**Created:** [October 31, 2019, 6:17am UTC](https://discuss.elastic.co/t/running-tests-for-output-file-plugin/205979 "2019-10-31T06:17:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nitin\_Gupta3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nitin_gupta3/32/52113_2.png) [@Nitin\_Gupta3](https://discuss.elastic.co/u/Nitin_Gupta3)\
**Post date:** [October 31, 2019, 6:17am UTC](https://discuss.elastic.co/t/running-tests-for-output-file-plugin/205979/1 "2019-10-31T06:17:15Z")

</div>

I'm not able to run tests for logstash-output-file plugin.  
While I'm able to execute "jruby -S bundle install" successfully.  
but next command: "jruby -S bundle exec rspec" gives an error:

> You have requested:
> 
> logstash-devutils \>= 0
> 
> The bundle currently has logstash-devutils locked at 1.3.6.
> 
> Try running `bundle update logstash-devutils`
> 
> If you are updating multiple gems in your Gemfile at once,
> 
> try passing them all to `bundle update`
> 
> Run `bundle install` to install missing gems.

Running bundle update is of no help here.  
Any hints on how to resolve this error?

jruby version (mac osx):

jruby -v

jruby 9.2.7.0 (2.5.3) 2019-04-09 8a269e3 Java HotSpot(TM) 64-Bit Server VM 25.60-b23 on 1.8.0\_60-b27 +jit [darwin-x86\_64]

---

<div class="post-metadata">

**Author:** ![Nitin\_Gupta3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nitin_gupta3/32/52113_2.png) [@Nitin\_Gupta3](https://discuss.elastic.co/u/Nitin_Gupta3)\
**Post date:** [October 31, 2019, 2:03pm UTC](https://discuss.elastic.co/t/running-tests-for-output-file-plugin/205979/2 "2019-10-31T14:03:00Z")

</div>

I was able to resolve this. Used rvm and set default environment as jruby.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 28, 2019, 2:03pm UTC](https://discuss.elastic.co/t/running-tests-for-output-file-plugin/205979/3 "2019-11-28T14:03:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
