diff options
Diffstat (limited to 'spec/ruby/core/process/tms')
| -rw-r--r-- | spec/ruby/core/process/tms/cstime_spec.rb | 12 | ||||
| -rw-r--r-- | spec/ruby/core/process/tms/cutime_spec.rb | 12 | ||||
| -rw-r--r-- | spec/ruby/core/process/tms/element_reference_spec.rb | 5 | ||||
| -rw-r--r-- | spec/ruby/core/process/tms/members_spec.rb | 5 | ||||
| -rw-r--r-- | spec/ruby/core/process/tms/new_spec.rb | 5 | ||||
| -rw-r--r-- | spec/ruby/core/process/tms/stime_spec.rb | 12 | ||||
| -rw-r--r-- | spec/ruby/core/process/tms/utime_spec.rb | 12 |
7 files changed, 40 insertions, 23 deletions
diff --git a/spec/ruby/core/process/tms/cstime_spec.rb b/spec/ruby/core/process/tms/cstime_spec.rb index 207d4391c0..9c2d9e8632 100644 --- a/spec/ruby/core/process/tms/cstime_spec.rb +++ b/spec/ruby/core/process/tms/cstime_spec.rb @@ -1,9 +1,17 @@ require_relative '../../../spec_helper' describe "Process::Tms#cstime" do - it "needs to be reviewed for spec completeness" + it "returns cstime attribute" do + cstime = Object.new + Process::Tms.new(nil, nil, nil, cstime).cstime.should == cstime + end end describe "Process::Tms#cstime=" do - it "needs to be reviewed for spec completeness" + it "assigns a value to the cstime attribute" do + cstime = Object.new + tms = Process::Tms.new + tms.cstime = cstime + tms.cstime.should == cstime + end end diff --git a/spec/ruby/core/process/tms/cutime_spec.rb b/spec/ruby/core/process/tms/cutime_spec.rb index 390280f005..0ac3ff1964 100644 --- a/spec/ruby/core/process/tms/cutime_spec.rb +++ b/spec/ruby/core/process/tms/cutime_spec.rb @@ -1,9 +1,17 @@ require_relative '../../../spec_helper' describe "Process::Tms#cutime" do - it "needs to be reviewed for spec completeness" + 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 "needs to be reviewed for spec completeness" + 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 diff --git a/spec/ruby/core/process/tms/element_reference_spec.rb b/spec/ruby/core/process/tms/element_reference_spec.rb deleted file mode 100644 index 84a34089ae..0000000000 --- a/spec/ruby/core/process/tms/element_reference_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require_relative '../../../spec_helper' - -describe "Process::Tms.[]" do - it "needs to be reviewed for spec completeness" -end diff --git a/spec/ruby/core/process/tms/members_spec.rb b/spec/ruby/core/process/tms/members_spec.rb deleted file mode 100644 index 005a8baec1..0000000000 --- a/spec/ruby/core/process/tms/members_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require_relative '../../../spec_helper' - -describe "Process::Tms.members" do - it "needs to be reviewed for spec completeness" -end diff --git a/spec/ruby/core/process/tms/new_spec.rb b/spec/ruby/core/process/tms/new_spec.rb deleted file mode 100644 index 9dd1f5a8f2..0000000000 --- a/spec/ruby/core/process/tms/new_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require_relative '../../../spec_helper' - -describe "Process::Tms.new" do - it "needs to be reviewed for spec completeness" -end diff --git a/spec/ruby/core/process/tms/stime_spec.rb b/spec/ruby/core/process/tms/stime_spec.rb index 4104b625e2..1e8371475f 100644 --- a/spec/ruby/core/process/tms/stime_spec.rb +++ b/spec/ruby/core/process/tms/stime_spec.rb @@ -1,9 +1,17 @@ require_relative '../../../spec_helper' describe "Process::Tms#stime" do - it "needs to be reviewed for spec completeness" + 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 "needs to be reviewed for spec completeness" + 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 diff --git a/spec/ruby/core/process/tms/utime_spec.rb b/spec/ruby/core/process/tms/utime_spec.rb index 28371590e9..403a31e2e6 100644 --- a/spec/ruby/core/process/tms/utime_spec.rb +++ b/spec/ruby/core/process/tms/utime_spec.rb @@ -1,9 +1,17 @@ require_relative '../../../spec_helper' describe "Process::Tms#utime" do - it "needs to be reviewed for spec completeness" + it "returns utime attribute" do + utime = Object.new + Process::Tms.new(utime, nil, nil, nil).utime.should == utime + end end describe "Process::Tms#utime=" do - it "needs to be reviewed for spec completeness" + it "assigns a value to the ctime attribute" do + utime = Object.new + tms = Process::Tms.new + tms.utime = utime + tms.utime.should == utime + end end |
