Skip to content
Browse files

add test for bundle command creation

  • Loading branch information...
1 parent 432138b commit 8023273a764bbeec0ddb068c97e8080dabe0d398 @gregors committed Mar 18, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 spec/appraisal/appraisal_spec.rb
View
12 spec/appraisal/appraisal_spec.rb
@@ -0,0 +1,12 @@
+require 'spec_helper'
+require 'appraisal/appraisal'
+
+describe Appraisal::Appraisal do
+ it "creates a proper bundle command" do
+ appraisal = Appraisal::Appraisal.new('fake', 'fake')
+ appraisal.stub(:gemfile_path)
+ .and_return("/home/test/test directory")
+
+ appraisal.bundle_command.should == "bundle install --gemfile='/home/test/test directory'"
+ end
+end

0 comments on commit 8023273

Please sign in to comment.
Something went wrong with that request. Please try again.