Sha256: c3a0e5236f9ddb446240bd9c5fd8e0dbbac3746b6e5c1ffd6e4d4b58ad046509

Contents?: true

Size: 724 Bytes

Versions: 36

Compression:

Stored size: 724 Bytes

Contents

require 'core/spec_helper'

describe ZendeskAPI::Setting do
  it_should_be_readable :settings, :path => 'account/settings'

  under (user = ZendeskAPI::User.new(client, :id => 'me')) do
    it_should_be_readable user, :settings

    describe 'updating', :vcr do
      it 'should be updatable' do
        settings = user.settings
        lotus = settings.detect {|set| set.on == "lotus"}

        original_setting = lotus.keyboard_shortcuts_enabled
        lotus.keyboard_shortcuts_enabled = !original_setting

        settings.save!
        settings.fetch!(true)

        lotus = settings.detect {|set| set.on == "lotus"}
        expect(lotus.keyboard_shortcuts_enabled).to eq(!original_setting)
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

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