Sha256: ab2b7dac1fa3911c10d26b5764092e18ac6ca04275f9da9ee63ff62f2d369863

Contents?: true

Size: 398 Bytes

Versions: 8

Compression:

Stored size: 398 Bytes

Contents

require "test_helper"

describe "Testing origin" do
  let(:admin) { Order.act_with_flags }
  let(:order) { Order.new }

  def setup
    reset_order
  end

  it "location origin1" do
    Order.add_to_flags :x, origin: :origin1
    assert_equal :origin1, admin.location(:x).origin
  end

  it "origin default" do
    Order.add_to_flags :x
    assert_equal :flags, admin.location(:x).origin
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
act_with_flags-3.1.9 test/origin_test.rb
act_with_flags-3.1.6 test/origin_test.rb
act_with_flags-3.1.5 test/origin_test.rb
act_with_flags-3.1.3 test/origin_test.rb
act_with_flags-3.1.2 test/origin_test.rb
act_with_flags-3.1.1 test/origin_test.rb
act_with_flags-3.1.0 test/origin_test.rb
act_with_flags-3.0.1 test/origin_test.rb