Skip to content

Commit

Permalink
Merge pull request rspec#501 from cbascom/config_spec_failures
Browse files Browse the repository at this point in the history
Create the fakefs home directory path so writes to ~/.rspec succeed
  • Loading branch information
dchelimsky committed Nov 12, 2011
2 parents 7c52488 + 88b342b commit a085b6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/rspec/core/configuration_options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@
end

describe "sources: ~/.rspec, ./.rspec, custom, CLI, and SPEC_OPTS" do
before(:each) do
FileUtils.mkpath(File.expand_path("~"))
end

it "merges global, local, SPEC_OPTS, and CLI" do
File.open("./.rspec", "w") {|f| f << "--line 37"}
File.open("~/.rspec", "w") {|f| f << "--color"}
Expand Down

0 comments on commit a085b6f

Please sign in to comment.