Sha256: 943f0169c3bd906b867f3c8c32b6f89689bca838add1f4c41f31bce0de82c967

Contents?: true

Size: 597 Bytes

Versions: 72

Compression:

Stored size: 597 Bytes

Contents

require 'core/spec_helper'

describe ZendeskAPI::Trigger, :delete_after do
  def valid_attributes
    {
      :title => "my test trigger",
      :conditions => {
        :all => [{ :field => "status", :operator => "is", :value => "open" }]
      },
      :actions => [{ :field => "status", :value => "solved" }]
    }
  end

  it_should_be_readable :triggers
  it_should_be_readable :triggers, :active

  it_should_be_creatable
  it_should_be_updatable :conditions, {
    "any" => [],
    "all" => [{ "field" => "priority", "operator" => "is", "value" => "low" }]
  }
  it_should_be_deletable
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
zendesk_api-1.13.1 spec/live/trigger_spec.rb
zendesk_api-1.12.1 spec/live/trigger_spec.rb
zendesk_api-1.12.0 spec/live/trigger_spec.rb
zendesk_api-1.11.7 spec/live/trigger_spec.rb
zendesk_api-1.11.6 spec/live/trigger_spec.rb
zendesk_api-1.11.5 spec/live/trigger_spec.rb
zendesk_api-1.11.4 spec/live/trigger_spec.rb
zendesk_api-1.11.3 spec/live/trigger_spec.rb
zendesk_api-1.11.2 spec/live/trigger_spec.rb
zendesk_api-1.11.1 spec/live/trigger_spec.rb
zendesk_api-1.11.0 spec/live/trigger_spec.rb
zendesk_api-1.10.0 spec/live/trigger_spec.rb
zendesk_api-1.9.6 spec/live/trigger_spec.rb
zendesk_api-1.9.5 spec/live/trigger_spec.rb
zendesk_api-1.9.4 spec/live/trigger_spec.rb
zendesk_api-1.9.3 spec/live/trigger_spec.rb
zendesk_api-1.9.2 spec/live/trigger_spec.rb
zendesk_api-1.9.1 spec/live/trigger_spec.rb
zendesk_api-1.9.0 spec/live/trigger_spec.rb
zendesk_api-1.8.0 spec/live/trigger_spec.rb