Sha256: f054e1a0859418b8bf1710e866b985f99966bc34ad5b97fa1af2851a1259d174

Contents?: true

Size: 550 Bytes

Versions: 5

Compression:

Stored size: 550 Bytes

Contents

describe DNSimple::User do
  describe ".me" do
    use_vcr_cassette
    let(:user) { DNSimple::User.me }

    it "returns the current user" do
      user.should_not be_nil
    end
    
    it "has attributes" do
      user.id.should_not be_nil
      user.created_at.should_not be_nil
      user.updated_at.should_not be_nil
      user.email.should_not be_nil
      user.login_count.should_not be_nil
      user.failed_login_count.should_not be_nil
      user.domain_count.should_not be_nil
      user.domain_limit.should_not be_nil
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dnsimple-ruby-1.3.2 spec/user_spec.rb
dnsimple-ruby-1.3.1 spec/user_spec.rb
dnsimple-ruby-1.3.0 spec/user_spec.rb
dnsimple-ruby-1.2.6 spec/user_spec.rb
dnsimple-ruby-1.2.5 spec/user_spec.rb