Sha256: d2adf3f10f12dee9b51207c105c1d59a0b9ad88daeeb99d6f3922d48ea3a01de

Contents?: true

Size: 333 Bytes

Versions: 4

Compression:

Stored size: 333 Bytes

Contents

require 'test_helper'

describe 'Delete from Flags' do
  let(:order) { Order.create }

  def setup
    reset_order
    Order.add_to_flags a: 1, b: 7, c: 3
    order.a = order.b = order.c = true
  end

  it 'remove accessors' do
    Order.remove_from_flags :b
    assert_raises { order.b }
    refute Order.respond_to?(:b)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
act_with_flags-0.2.4 test/remove_from_test.rb
act_with_flags-0.2.3 test/remove_from_test.rb
act_with_flags-0.2.0 test/remove_from_test.rb
act_with_flags-0.1.0 test/remove_from_test.rb