Sha256: 5d1e5d387669f49c9b15893dcdad77bd659f7fd03bc700598091f7ec3883d392

Contents?: true

Size: 762 Bytes

Versions: 14

Compression:

Stored size: 762 Bytes

Contents

require 'helper'

describe Desk::Client do
  context "User" do

    let(:endpoint) { "user" }
    let(:id) { 1 }
    let(:check_key) { "name" }
    let(:check_value) { "John Doe" }

    include_context "basic configuration"

    it_behaves_like "a list endpoint"

    it_behaves_like "a show endpoint"

    context "Preference" do

      let(:sub_endpoint) { "preference" }
      let(:sub_id) { 1 }
      let(:check_key) { "name" }
      let(:check_value) { "enable_routing_filter_on_login" }

      it_behaves_like "a sub list endpoint"

      it_behaves_like "a sub show endpoint"

      it_behaves_like "a sub update endpoint", { :value => true } do
        let(:sub_id) { 3 }
        let(:check_value) { "auto_accept_on_route" }
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
desk-1.2.0 spec/desk/client/user_spec.rb
desk-1.1.1 spec/desk/client/user_spec.rb
desk-1.1.0 spec/desk/client/user_spec.rb
desk-1.0.10 spec/desk/client/user_spec.rb
desk-1.0.9 spec/desk/client/user_spec.rb
desk-1.0.8 spec/desk/client/user_spec.rb
desk-1.0.7 spec/desk/client/user_spec.rb
desk-1.0.6 spec/desk/client/user_spec.rb
desk-1.0.5 spec/desk/client/user_spec.rb
desk-1.0.4 spec/desk/client/user_spec.rb
desk-1.0.3 spec/desk/client/user_spec.rb
desk-1.0.2 spec/desk/client/user_spec.rb
desk-1.0.1 spec/desk/client/user_spec.rb
desk-1.0.0 spec/desk/client/user_spec.rb