Sha256: 3ca40b6c2f83daedf780990125d1b80b89ddb270464f255f6209e1a310044835
Contents?: true
Size: 617 Bytes
Versions: 12
Compression:
Stored size: 617 Bytes
Contents
require 'test_helper' describe 'Landrush::Config' do it "supports enabling via accessor style" do machine = fake_machine config = machine.config.landrush machine.config.landrush.enabled = true config.enabled?.must_equal true machine.config.landrush.enabled = false config.enabled?.must_equal false end it "is backwards-compatible with the old method call style" do machine = fake_machine config = machine.config.landrush machine.config.landrush.enable config.enabled?.must_equal true machine.config.landrush.disable config.enabled?.must_equal false end end
Version data entries
12 entries across 12 versions & 1 rubygems