test/lib/vedeu/configuration_test.rb in vedeu-0.1.18 vs test/lib/vedeu/configuration_test.rb in vedeu-0.1.19
- old
+ new
@@ -1,26 +1,30 @@
require 'test_helper'
module Vedeu
describe Configuration do
before { Configuration.reset }
+ after { Configuration.reset }
- after { Configuration.reset }
-
describe '#colour_mode' do
it 'returns the value of the colour_mode option' do
ENV['VEDEU_TERM'] = 'xterm-truecolor'
Configuration.colour_mode.must_equal(16777216)
end
it '--colour-mode' do
- Configuration.configure(['--colour-mode', '16'])
- Configuration.colour_mode.must_equal(16)
+ Configuration.configure(['--colour-mode', '16777216'])
+ Configuration.colour_mode.must_equal(16777216)
end
it '--colour-mode' do
Configuration.configure(['--colour-mode', '256'])
Configuration.colour_mode.must_equal(256)
+ end
+
+ it '--colour-mode' do
+ Configuration.configure(['--colour-mode', '16'])
+ Configuration.colour_mode.must_equal(16)
end
it '--colour-mode' do
Configuration.configure(['--colour-mode', '348'])
Configuration.colour_mode.must_equal(8)