spec/bacon/spec_helper.rb in clintegracon-0.4.1 vs spec/bacon/spec_helper.rb in clintegracon-0.5.0
- old
+ new
@@ -3,12 +3,12 @@
ROOT = Pathname.new(File.expand_path('../../../', __FILE__))
BIN = ROOT + 'spec/fixtures/bin'
CLIntegracon.configure do |c|
- c.context.spec_path = ROOT + 'spec/integration'
- c.context.temp_path = ROOT + 'tmp/bacon_specs'
+ c.spec_path = ROOT + 'spec/integration'
+ c.temp_path = ROOT + 'tmp/bacon_specs'
c.hook_into :bacon
end
@@ -24,14 +24,14 @@
}
s.default_args = [
'--verbose',
'--no-ansi'
]
- s.has_special_path ROOT.to_s, 'ROOT'
- s.has_special_path `bundle show claide`.rstrip, 'CLAIDE_SRC'
+ s.replace_path ROOT.to_s, 'ROOT'
+ s.replace_path `bundle show claide`.rstrip, 'CLAIDE_SRC'
end
- context do |c|
+ file_tree_spec_context do |c|
c.ignores '.DS_Store'
c.ignores '.gitkeep'
c.has_special_handling_for 'execution_output.txt' do |path|
File.read(path).gsub(/:in `<main>'$/, '') # workaround different stack trace format by ruby-1.8.7