summaryrefslogtreecommitdiff
path: root/spec/ruby/core/process/tms/cutime_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/process/tms/cutime_spec.rb')
-rw-r--r--spec/ruby/core/process/tms/cutime_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/ruby/core/process/tms/cutime_spec.rb b/spec/ruby/core/process/tms/cutime_spec.rb
new file mode 100644
index 0000000000..0ac3ff1964
--- /dev/null
+++ b/spec/ruby/core/process/tms/cutime_spec.rb
@@ -0,0 +1,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