Sha256: 4fefa2e6a465fed3ae9e17fd6e79c2c1e10bd78ea01abdff0f205e2ed06a81a5
Contents?: true
Size: 410 Bytes
Versions: 5
Compression:
Stored size: 410 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' require 'mspec/helpers/mock_to_path' describe Object, "#mock_to_path" do it "returns an object that responds to #to_path" do obj = mock_to_path("foo") obj.should respond_to(:to_path) obj.to_path end it "returns the provided path when #to_path is called" do obj = mock_to_path("/tmp/foo") obj.to_path.should == "/tmp/foo" end end
Version data entries
5 entries across 5 versions & 1 rubygems