summaryrefslogtreecommitdiff
path: root/spec/ruby/core/process/tms/stime_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/process/tms/stime_spec.rb')
-rw-r--r--spec/ruby/core/process/tms/stime_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/ruby/core/process/tms/stime_spec.rb b/spec/ruby/core/process/tms/stime_spec.rb
new file mode 100644
index 0000000000..1e8371475f
--- /dev/null
+++ b/spec/ruby/core/process/tms/stime_spec.rb
@@ -0,0 +1,17 @@
+require_relative '../../../spec_helper'
+
+describe "Process::Tms#stime" do
+ it "returns stime attribute" do
+ stime = Object.new
+ Process::Tms.new(nil, stime, nil, nil).stime.should == stime
+ end
+end
+
+describe "Process::Tms#stime=" do
+ it "assigns a value to the stime attribute" do
+ stime = Object.new
+ tms = Process::Tms.new
+ tms.stime = stime
+ tms.stime.should == stime
+ end
+end