diff options
author | Benoit Daloze <eregontp@gmail.com> | 2021-03-27 13:02:38 +0100 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2021-03-27 13:02:38 +0100 |
commit | 44736a6b7a2b3475db2d05187f33e3c1a7b4b4e5 (patch) | |
tree | 4cb679a8742121782a50e72e01160d19f479f9a6 /spec/mspec/spec/helpers/tmp_spec.rb | |
parent | 31ae931e166825450dcc16d470553e67281951a2 (diff) |
Update to ruby/mspec@d1adf59
Diffstat (limited to 'spec/mspec/spec/helpers/tmp_spec.rb')
-rw-r--r-- | spec/mspec/spec/helpers/tmp_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/mspec/spec/helpers/tmp_spec.rb b/spec/mspec/spec/helpers/tmp_spec.rb index 4dcf629d94..c41dcd57b3 100644 --- a/spec/mspec/spec/helpers/tmp_spec.rb +++ b/spec/mspec/spec/helpers/tmp_spec.rb @@ -2,26 +2,26 @@ require 'spec_helper' require 'mspec/guards' require 'mspec/helpers' -describe Object, "#tmp" do +RSpec.describe Object, "#tmp" do before :all do @dir = SPEC_TEMP_DIR end it "returns a name relative to the current working directory" do - tmp("test.txt").should == "#{@dir}/#{SPEC_TEMP_UNIQUIFIER}-test.txt" + expect(tmp("test.txt")).to eq("#{@dir}/#{SPEC_TEMP_UNIQUIFIER}-test.txt") end it "returns a 'unique' name on repeated calls" do a = tmp("text.txt") b = tmp("text.txt") - a.should_not == b + expect(a).not_to eq(b) end it "does not 'uniquify' the name if requested not to" do - tmp("test.txt", false).should == "#{@dir}/test.txt" + expect(tmp("test.txt", false)).to eq("#{@dir}/test.txt") end it "returns the name of the temporary directory when passed an empty string" do - tmp("").should == "#{@dir}/" + expect(tmp("")).to eq("#{@dir}/") end end |