diff options
Diffstat (limited to 'spec/unit/plugins/ohai_time_spec.rb')
-rw-r--r-- | spec/unit/plugins/ohai_time_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/plugins/ohai_time_spec.rb b/spec/unit/plugins/ohai_time_spec.rb index 1fea37cd..ea5f2d66 100644 --- a/spec/unit/plugins/ohai_time_spec.rb +++ b/spec/unit/plugins/ohai_time_spec.rb @@ -19,23 +19,23 @@ require "spec_helper" describe Ohai::System, "plugin ohai_time" do - before(:each) do + before do @plugin = get_plugin("ohai_time") end - it "should get the current time" do + it "gets the current time" do expect(Time).to receive(:now) @plugin.run end - it "should turn the time into a floating point number" do + it "turns the time into a floating point number" do time = Time.now expect(time).to receive(:to_f) allow(Time).to receive(:now).and_return(time) @plugin.run end - it "should set ohai_time to the current time" do + it "sets ohai_time to the current time" do time = Time.now allow(Time).to receive(:now).and_return(time) @plugin.run |