Skip to content

Commit

Permalink
Fix build error on Rubinius by requiring matcher
Browse files Browse the repository at this point in the history
There was some problem with class autoloading in Rubinius, which can be
workaround by just requiring that missing file.

See rubinius/rubinius#2934
  • Loading branch information
sikachu committed Feb 28, 2014
1 parent b73c275 commit 33775b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/appraisal/file_spec.rb
@@ -1,6 +1,10 @@
require 'spec_helper'
require 'appraisal/file'

# Requiring this to make the test pass on Rubinius 2.2.5
# https://github.com/rubinius/rubinius/issues/2934
require 'rspec/matchers/built_in/raise_error'

describe Appraisal::File do
it "should complain when no Appraisals file is found" do
::File.stub(:exist?).with("Appraisals").and_return(false)
Expand Down

0 comments on commit 33775b4

Please sign in to comment.