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

Version Path
landrush-1.0.0 test/landrush/config_test.rb
landrush-0.19.0 test/landrush/config_test.rb
landrush-0.18.0 test/landrush/config_test.rb
landrush-0.17.0 test/landrush/config_test.rb
landrush-0.16.0 test/landrush/config_test.rb
landrush-0.15.4 test/landrush/config_test.rb
landrush-0.15.3 test/landrush/config_test.rb
landrush-0.15.2 test/landrush/config_test.rb
landrush-0.15.1 test/landrush/config_test.rb
landrush-0.15.0 test/landrush/config_test.rb
landrush-0.14.1 test/landrush/config_test.rb
landrush-0.14.0 test/landrush/config_test.rb