diff options
author | Tim Smith <tsmith84@gmail.com> | 2019-08-16 13:15:22 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2019-08-16 13:15:22 -0700 |
commit | 54b3cc831750805f19f838d60dea25e23dfa2e8c (patch) | |
tree | 81f539fca05ca2d0ed0761011913cd852b46d450 /spec/unit/plugins/ohai_time_spec.rb | |
parent | 038fd847c6d75dfaf6e60b67de185732aa245cc3 (diff) | |
download | ohai-rspec.tar.gz |
rspec updates from rubocop-rspecrspec
Autocorrects for a few different things that rubocop-rspec identified.
Signed-off-by: Tim Smith <tsmith@chef.io>
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 |