Skip to content

Commit 055b851

Browse files
committedOct 29, 2013
Remove all stubbed mspec files
1 parent f11d804 commit 055b851

File tree

8 files changed

+16
-2
lines changed

8 files changed

+16
-2
lines changed
 

‎spec/mspec/guards/block_device.rb

Whitespace-only changes.

‎spec/mspec/guards/endian.rb

Whitespace-only changes.

‎spec/mspec/helpers/environment.rb

Whitespace-only changes.

‎spec/mspec/helpers/language_version.rb

Whitespace-only changes.

‎spec/mspec/helpers/tmp.rb

Whitespace-only changes.

‎spec/spec_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require 'set'
44
require 'opal-parser'
55
require 'mspec'
6-
require 'mspec/mock_install_method_patch'
6+
require 'ospec/mock_install_method_patch'
77

88
ENV['MSPEC_RUNNER'] = true
99

‎tasks/mspec.rake

+15-1
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,24 @@ class SpecEnvironment < Opal::Environment
2828
append_path 'rubyspec'
2929
use_gem 'mspec'
3030

31-
%w[fileutils iconv yaml].each do |asset|
31+
stubs.each do |asset|
3232
Opal::Processor.stub_file asset
3333
end
3434
end
3535

36+
def stubs
37+
# missing stdlib
38+
stubs = %w[fileutils iconv yaml]
39+
40+
# use x-strings which generate bad javascript
41+
stubs << "mspec/helpers/tmp"
42+
stubs << "mspec/helpers/environment"
43+
stubs << "mspec/guards/block_device"
44+
stubs << "mspec/guards/endian"
45+
46+
stubs
47+
end
48+
3649
def specs
3750
@specs ||= self['ospec/main'].to_s
3851
end
@@ -51,6 +64,7 @@ end
5164
class RunSpec
5265
def initialize(file=nil)
5366
Opal::Processor.arity_check_enabled = true
67+
Opal::Processor.dynamic_require_severity = :warning
5468

5569
ENV['OPAL_SPEC'] = self.specs_to_run(file).join(',')
5670

0 commit comments

Comments
 (0)
Please sign in to comment.