Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 599 Bytes
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
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
Something went wrong with that request. Please try again.