From 51f5ff38424c2313e406d6258952a5d2876cb26d Mon Sep 17 00:00:00 2001 From: David Dollar Date: Tue, 31 Jan 2012 18:01:53 -0500 Subject: [PATCH] latest jruby fixed non-excutable to raise EACCESS --- spec/foreman/cli_spec.rb | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/spec/foreman/cli_spec.rb b/spec/foreman/cli_spec.rb index 8534f5e..a18d982 100644 --- a/spec/foreman/cli_spec.rb +++ b/spec/foreman/cli_spec.rb @@ -148,15 +148,12 @@ describe "Foreman::CLI", :fakefs do end end - # inconsistency in jruby, disabling for now - unless Foreman.jruby? - describe "and a non-executable command" do - let(:command) { __FILE__ } + describe "and a non-executable command" do + let(:command) { __FILE__ } - it "should print an error" do - mock_error(subject, "not executable: #{command}") do - subject.run command - end + it "should print an error" do + mock_error(subject, "not executable: #{command}") do + subject.run command end end end