Skip to content

Commit a367307

Browse files
committed
executes task spec only on darwin/linux
1 parent 4caa29e commit a367307

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

spec/vmstat/snapshot_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
its(:load_average) { should be_a(Vmstat::LoadAverage) }
2929
its(:memory) { should be_a(Vmstat::Memory) }
3030
its(:network_interfaces) { should be_a(Array) }
31-
its(:task) { should be_a(Vmstat::Task) }
31+
if RUBY_PLATFORM =~ /darwin|linux/
32+
its(:task) { should be_a(Vmstat::Task) }
33+
end
3234

3335
context "first of cpu" do
3436
subject { snapshot.cpus.first }

spec/vmstat/task_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@
2323
its(:system_time_ms) { should be_a_kind_of(Numeric) }
2424
end
2525
end
26-
end
26+
end if RUBY_PLATFORM =~ /darwin|linux/
27+

0 commit comments

Comments
 (0)