Sha256: e972ec8b4a47817dff7e654d5ca17020697700e41b3a2cc51b3148db9533cfe5

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

require "spec_helper"

describe Youtrack::User do
  let(:users) do
    client = Youtrack::Client.new do |c|
      c.url = "https://example.com"
      c.login = "test"
      c.password = "test"
    end
    client.users
  end

  describe "api methods" do
    it "#current" do
      users.method(:current).arity.should eq(0)
    end

    it "#get_by_login" do
      users.method(:get_by_login).arity.should eq(1)
    end

    it "#get_saved_searches_for" do
      users.method(:get_saved_searches_for).arity.should eq(1)
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
youtrack-0.0.8 spec/youtrack/resources/user_spec.rb