We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4caa29e commit a367307Copy full SHA for a367307
2 files changed
spec/vmstat/snapshot_spec.rb
@@ -28,7 +28,9 @@
28
its(:load_average) { should be_a(Vmstat::LoadAverage) }
29
its(:memory) { should be_a(Vmstat::Memory) }
30
its(:network_interfaces) { should be_a(Array) }
31
- its(:task) { should be_a(Vmstat::Task) }
+ if RUBY_PLATFORM =~ /darwin|linux/
32
+ its(:task) { should be_a(Vmstat::Task) }
33
+ end
34
35
context "first of cpu" do
36
subject { snapshot.cpus.first }
spec/vmstat/task_spec.rb
@@ -23,4 +23,5 @@
23
its(:system_time_ms) { should be_a_kind_of(Numeric) }
24
end
25
26
-end
+end if RUBY_PLATFORM =~ /darwin|linux/
27
+
0 commit comments