Permalink
Browse files

add spec for cleaning up appraisal name

  • Loading branch information...
1 parent b21220a commit 1d4fa937ef73d18e9b7045dd6328da6019f38581 @osheroff osheroff committed with gabebw Mar 24, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 spec/appraisal/appraisal_spec.rb
View
5 spec/appraisal/appraisal_spec.rb
@@ -8,4 +8,9 @@
appraisal.bundle_command.should == "bundle install --gemfile='/home/test/test directory'"
end
+
+ it "cleans up spaces and punctunation when outputting its gemfile" do
+ appraisal = Appraisal::Appraisal.new("This! is my appraisal name.", "Gemfile")
+ appraisal.gemfile_path.should =~ /This_is_my_appraisal_name.gemfile/
+ end
end

0 comments on commit 1d4fa93

Please sign in to comment.