Skip to content

Commit 68d12ae

Browse files
committedJun 4, 2014
Revert back to rspec 3 beta1
1 parent f018ec2 commit 68d12ae

File tree

3 files changed

+30
-9
lines changed

3 files changed

+30
-9
lines changed
 

Diff for: ‎Gemfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ gem 'opal'
55

66
gem 'rake'
77

8-
gem 'rspec', '3.0.0.rc1'
9-
gem 'rspec-support', '3.0.0.rc1'
10-
gem 'rspec-core', '3.0.0.rc1'
11-
gem 'rspec-mocks', '3.0.0.rc1'
12-
gem 'rspec-expectations', '3.0.0.rc1'
8+
gem 'rspec', '3.0.0.beta1'
9+
gem 'rspec-support', '3.0.0.beta1'
10+
gem 'rspec-core', '3.0.0.beta1'
11+
gem 'rspec-mocks', '3.0.0.beta1'
12+
gem 'rspec-expectations', '3.0.0.beta1'

Diff for: ‎Rakefile

+20-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,25 @@ task :sizes do
1919
puts "\ndevelopment: #{code.size}, minified: #{min.size}"
2020
end
2121

22+
module Opal
23+
module Nodes
24+
class OpAsgn1Node
25+
def compile_and
26+
with_temp do |a| # args
27+
with_temp do |r| # recv
28+
aref = s(:call, s(:js_tmp, r), :[], s(:arglist, s(:js_tmp, a)))
29+
aset = s(:call, s(:js_tmp, r), :[]=, s(:arglist, s(:js_tmp, a), rhs))
30+
andop = s(:and, aref, aset)
31+
32+
push "(#{a} = ", expr(first_arg), ", #{r} = ", expr(lhs)
33+
push ", ", expr(andop), ")"
34+
end
35+
end
36+
end
37+
end
38+
end
39+
end
40+
2241
def build_rspec
2342
Opal::Processor.dynamic_require_severity = :warning
2443
Opal.append_path 'app'
@@ -27,7 +46,7 @@ def build_rspec
2746
Opal.use_gem 'rspec-expectations'
2847

2948
%w[time fileutils test/unit/assertions coderay optparse shellwords socket uri
30-
drb/drb diff/lcs diff/lcs/hunk].each do |asset|
49+
drb/drb diff/lcs diff/lcs/hunk minitest minitest/assertions minitest/unit].each do |asset|
3150
Opal::Processor.stub_file asset
3251
end
3352

Diff for: ‎app/rspec-builder.rb

+5-3
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,24 @@
1818
require 'rspec/core/memoized_helpers'
1919
require 'rspec/core/metadata'
2020
require 'rspec/core/pending'
21+
2122
require 'rspec/core/formatters'
23+
require 'rspec/core/formatters/helpers'
24+
require 'rspec/core/formatters/base_formatter'
25+
require 'rspec/core/formatters/base_text_formatter'
2226
require 'rspec/core/ordering'
2327

2428
require 'rspec/core/world'
2529
require 'rspec/core/configuration'
2630
require 'rspec/core/option_parser'
2731
require 'rspec/core/configuration_options'
28-
require 'rspec/core/command_line'
2932
require 'rspec/core/runner'
3033
require 'rspec/core/example'
31-
require 'rspec/core/shared_example_group/collection'
3234
require 'rspec/core/shared_example_group'
3335
require 'rspec/core/example_group'
3436

3537
require 'rspec/core'
36-
require 'rspec-expectations'
38+
require 'rspec/expectations'
3739
require 'rspec/mocks'
3840

3941
# we want access to BaseFormatter

0 commit comments

Comments
 (0)
Please sign in to comment.