Skip to content

Commit b45ff60

Browse files
committed
Merge pull request #1 from prathamesh-sonpatki/pass_specs
Added spec_helper and used correct paths in specs Looks good. Just some fallout from renaming from jruby-visualizer to jruby_visualizer in specs. spec-helper changes are also ok. @komax is moving right now and cannot review.
2 parents 61ffdc6 + bfec470 commit b45ff60

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ spec/reports
1212
test/tmp
1313
test/version_tmp
1414
tmp
15+
.rspec
1516

1617
# YARD artifacts
1718
.yardoc

spec/compiler_data_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'jruby-visualizer/compiler_data'
1+
require 'jruby_visualizer/compiler_data'
22
require 'jruby_visualizer_test_utils'
33

44
module CompilerDataTestUtils

spec/ir_scope_registry_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
require 'jruby-visualizer/ir_scope_registry'
1+
require 'jruby_visualizer/ir_scope_registry'
22
require 'jruby_visualizer_test_utils'
33

44
describe IRScopeRegistry do
55
include JRubyVisualizerTestUtils
6-
6+
77
before(:each) do
88
@ruby_code = "\nclass Foo\n\ndef bar; 42; end; end;\nFoo.new.bar"
99
ast_root = ast_for(@ruby_code)

spec/spec_helper.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file was generated by the `rspec --init` command. Conventionally, all
2+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3+
# Require this file using `require "spec_helper"` to ensure that it is only
4+
# loaded once.
5+
#
6+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7+
8+
$: << File.join(File.dirname(__FILE__), '../lib')
9+
10+
RSpec.configure do |config|
11+
config.treat_symbols_as_metadata_keys_with_true_values = true
12+
config.run_all_when_everything_filtered = true
13+
config.filter_run :focus
14+
15+
# Run specs in random order to surface order dependencies. If you find an
16+
# order dependency and want to debug it, you can fix the order by providing
17+
# the seed, which is printed after each run.
18+
# --seed 1234
19+
config.order = 'random'
20+
end

0 commit comments

Comments
 (0)