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