require 'spec_helper' require 'celluloid' require 'writefully/tools' module Writefully module Tools describe Initializer do let(:message) { { user_name: "zacksiri", auth_token: 'sampletoken', site_slug: 'codemy-net', ssh_url: 'blah@blah.com:zacksiri/blah.git' } } it "should have the correct command" do initializer = Initializer.new(message) expect(initializer.content_folder_setup_command).to include message[:site_slug] expect(initializer.content_folder_setup_command).to include message[:ssh_url] initializer.terminate end end end end