Sha256: a2df172aaeced92f1925085ad3b82c19138b0906483641105d603db1aaeac71e

Contents?: true

Size: 288 Bytes

Versions: 5

Compression:

Stored size: 288 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'
require 'mspec/helpers/tmp'

describe Object, "#tmp" do
  it "returns a name relative to the current working directory" do
    dir = "#{File.expand_path(Dir.pwd)}/rubyspec_temp"

    tmp("test.txt").should == dir + "/test.txt"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mspec-1.5.17 spec/helpers/tmp_spec.rb
mspec-1.5.16 spec/helpers/tmp_spec.rb
mspec-1.5.15 spec/helpers/tmp_spec.rb
mspec-1.5.14 spec/helpers/tmp_spec.rb
mspec-1.5.13 spec/helpers/tmp_spec.rb