spec/spec_helper.rb in applix-0.4.11 vs spec/spec_helper.rb in applix-0.4.12
- old
+ new
@@ -2,15 +2,23 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
#require 'rspec/mocks'
require 'applix'
require 'applix/oattr'
+require 'byebug'
RSpec.configure do |config|
config.before :each do
end
config.after :each do
+ end
+
+ # disable $crux debug flag after each test
+ config.after(:each) { $crux = false }
+
+ config.expect_with :rspec do |c|
+ c.syntax = [:should, :expect]
end
end
# captures standard output streams to help testing console I/O
#