File tree Expand file tree Collapse file tree 4 files changed +5
-12
lines changed
app/rspec/matchers/built_in Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -46,18 +46,6 @@ opal has to include all dependencies into build.
46
46
47
47
* ** line 171** : ` &::Time.method(:now) ` doesnt work so wrong method is set
48
48
49
- ### rspec/core/example_group.rb
50
-
51
- * ** line 547** : opal cannot use mutable strings (see opal/rspec/fixes.rb)
52
-
53
- * ** line 564** : opal cannot use mutable strings (see opal/rspec/fixes.rb). Also, opal
54
- does not support 2 regexp special characters yet (` \A ` and ` \z ` ).
55
-
56
- ### rspec/matchers/built_in/have.rb
57
-
58
- * ** line 1** : this is an error in rspec. This autoload does not exist so we must
59
- stub the file.
60
-
61
49
## License
62
50
63
51
(The MIT License)
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ def build_rspec
31
31
Opal ::Processor . stub_file asset
32
32
end
33
33
34
+ # bug in rspec? this autoload doesnt exist so we must stub it
35
+ Opal ::Processor . stub_file 'rspec/matchers/built_in/have'
36
+
34
37
Opal . process ( 'rspec-builder' )
35
38
end
36
39
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ def prefix_and_expected(symbol)
31
31
end
32
32
33
33
module RSpec ::ExampleGroups
34
+ # opal cannot use mutable strings AND opal doesnt support `\A` or `\z` anchors
34
35
def self . base_name_for ( group )
35
36
return "Anonymous" if group . description . empty?
36
37
@@ -48,6 +49,7 @@ def self.base_name_for(group)
48
49
name
49
50
end
50
51
52
+ # opal cannot use mutable strings
51
53
def self . disambiguate ( name , const_scope )
52
54
return name unless const_scope . const_defined? ( name )
53
55
You can’t perform that action at this time.
0 commit comments