summaryrefslogtreecommitdiff
path: root/spec/ruby/core/process/tms/cutime_spec.rb
blob: 0ac3ff1964fe6424831547b94d6bbeb219a52791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require_relative '../../../spec_helper'

describe "Process::Tms#cutime" do
  it "returns cutime attribute" do
    cutime = Object.new
    Process::Tms.new(nil, nil, cutime, nil).cutime.should == cutime
  end
end

describe "Process::Tms#cutime=" do
  it "assigns a value to the cutime attribute" do
    cutime = Object.new
    tms = Process::Tms.new
    tms.cutime = cutime
    tms.cutime.should == cutime
  end
end