Sha256: 05f9718a41108a589e3829717b6713d5ec325fee77d76bdcc88fb0656fad829d

Contents?: true

Size: 522 Bytes

Versions: 72

Compression:

Stored size: 522 Bytes

Contents

require 'core/spec_helper'

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

  it_should_be_readable :views
  it_should_be_readable :views, :active

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

Version data entries

72 entries across 72 versions & 1 rubygems

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