Skip to content

Commit

Permalink
Run specs on Ruby 2.7
Browse files Browse the repository at this point in the history
This fixes errors around using multiple assigns in conditions.
  • Loading branch information
nex3 committed Jun 5, 2020
1 parent 2fe90de commit f6e3971
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.1
2.7.0
95 changes: 61 additions & 34 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,64 +1,91 @@
GEM
remote: https://rubygems.org/
specs:
aruba (0.14.11)
childprocess (>= 0.6.3, < 3.0.0)
contracts (~> 0.9)
cucumber (>= 1.3.19)
activesupport (6.0.3.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
aruba (1.0.1)
childprocess (~> 3.0)
contracts (~> 0.16.0)
cucumber (>= 2.4, < 5.0)
ffi (~> 1.9)
rspec-expectations (>= 2.99)
thor (~> 0.19)
backports (3.15.0)
builder (3.2.3)
childprocess (2.0.0)
rake (< 13.0)
rspec-expectations (~> 3.4)
thor (~> 1.0)
builder (3.2.4)
childprocess (3.0.0)
colored (1.2)
command_line_reporter (3.3.6)
colored (>= 1.2)
concurrent-ruby (1.1.6)
contracts (0.16.0)
cucumber (3.1.2)
builder (>= 2.1.2)
cucumber-core (~> 3.2.0)
cucumber-expressions (~> 6.0.1)
cucumber-wire (~> 0.0.1)
diff-lcs (~> 1.3)
gherkin (~> 5.1.0)
multi_json (>= 1.7.5, < 2.0)
multi_test (>= 0.1.2)
cucumber-core (3.2.1)
backports (>= 3.8.0)
cucumber-tag_expressions (~> 1.1.0)
gherkin (~> 5.0)
cucumber-expressions (6.0.1)
cucumber-tag_expressions (1.1.1)
cucumber-wire (0.0.1)
cucumber (4.0.0)
builder (~> 3.2, >= 3.2.3)
cucumber-core (~> 7.0, >= 7.0.0)
cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
cucumber-gherkin (~> 13.0, >= 13.0.0)
cucumber-html-formatter (~> 6.0, >= 6.0.1)
cucumber-messages (~> 12.1, >= 12.1.1)
cucumber-wire (~> 3.0, >= 3.0.0)
diff-lcs (~> 1.3, >= 1.3)
multi_test (~> 0.1, >= 0.1.2)
sys-uname (~> 1.0, >= 1.0.2)
cucumber-core (7.0.0)
cucumber-gherkin (~> 13.0, >= 13.0.0)
cucumber-messages (~> 12.1, >= 12.1.1)
cucumber-tag-expressions (~> 2.0, >= 2.0.4)
cucumber-cucumber-expressions (10.2.0)
cucumber-gherkin (13.0.0)
cucumber-messages (~> 12.0, >= 12.0.0)
cucumber-html-formatter (6.0.2)
cucumber-messages (~> 12.1, >= 12.1.1)
cucumber-messages (12.1.1)
protobuf-cucumber (~> 3.10, >= 3.10.8)
cucumber-tag-expressions (2.0.4)
cucumber-wire (3.0.0)
cucumber-core (~> 7.0, >= 7.0.0)
cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
cucumber-messages (~> 12.1, >= 12.1.1)
diff-lcs (1.3)
diffy (3.3.0)
fakefs (1.2.2)
ffi (1.11.1)
gherkin (5.1.0)
ffi (1.13.0)
hrx (1.0.0)
linked-list (~> 0.0.13)
i18n (1.8.3)
concurrent-ruby (~> 1.0)
linked-list (0.0.13)
middleware (0.1.0)
minitest (5.11.3)
multi_json (1.13.1)
multi_test (0.1.2)
rake (12.3.3)
protobuf-cucumber (3.10.8)
activesupport (>= 3.2)
middleware
thor
thread_safe
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-core (3.8.2)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.4)
rspec-expectations (3.8.6)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-mocks (3.8.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.2)
rspec-support (3.8.3)
ruby-terminfo (0.1.1)
thor (0.20.3)
sys-uname (1.2.1)
ffi (>= 1.0.0)
thor (1.0.1)
thread_safe (0.3.6)
tzinfo (1.2.7)
thread_safe (~> 0.1)
zeitwerk (2.3.0)

PLATFORMS
ruby
Expand All @@ -74,4 +101,4 @@ DEPENDENCIES
ruby-terminfo (~> 0.1.1)

BUNDLED WITH
2.0.2
2.1.2
2 changes: 1 addition & 1 deletion lib/sass_spec/directory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def rename(old, new)

new_dir.archive.add(
HRX::File.new(new_basename, old_file.content, comment: old_file.comment),
new_dir == old_dir ? {after: old_file} : {})
after: new_dir == old_dir ? old_file : nil)
new_dir._write!

old_dir.delete(old_basename)
Expand Down
4 changes: 4 additions & 0 deletions tests/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
require 'rspec'
require 'aruba/rspec'

Aruba.configure do |config|
config.allow_absolute_paths = true
end

# Given the output of sass-spec,
# return the number of tests in
# each state (success, failed, etc)
Expand Down

0 comments on commit f6e3971

Please sign in to comment.