Skip to content

Commit

Permalink
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions opal/opal/rspec/fixes.rb
Original file line number Diff line number Diff line change
@@ -7,6 +7,13 @@ def flat_map(array)
module_function :flat_map
end

# This breaks on 2.0.0, so it is here ready for when opal bumps to 2.0.0
class RSpec::CallerFilter
def self.first_non_rspec_line
""
end
end

# String#<< is not supported by Opal
module RSpec::Expectations
def self.fail_with(message, expected = nil, actual = nil)

0 comments on commit 868117b

Please sign in to comment.