Sha256: 67bd01696418a7e0e414373ac4c51905745ecd212e8f85057e6515a2f695b411

Contents?: true

Size: 431 Bytes

Versions: 5

Compression:

Stored size: 431 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

class TargetingRulesTest < OpenX::TestCase

  test "creating rules" do
    assert_equal [
      {"logical"=>"and", "type"=>"Site:Pageurl", "comparison"=>"=~", "data" => "test"},
      {"logical"=>"and", "type"=>"Client:Ip", "comparison"=>"=x", "data" => "^127\\."},
      {"logical"=>"or",  "type"=>"Geo:Country", "comparison"=>"=~", "data" => "GB,US"}
    ], targeting_rules
  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
krakatoa-openx-1.9.4 test/test_targeting_rules.rb
bsm-openx-1.9.4 test/test_targeting_rules.rb
bsm-openx-1.9.3 test/test_targeting_rules.rb
bsm-openx-1.9.2 test/test_targeting_rules.rb
bsm-openx-1.9.1 test/test_targeting_rules.rb