Sha256: 5bf90e0e796c4f414e46f42a8b8612e43f8b7edc43f935e4344e65655af24aee

Contents?: true

Size: 596 Bytes

Versions: 23

Compression:

Stored size: 596 Bytes

Contents

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)
        initializer.content_folder_setup_command.should include message[:site_slug]
        initializer.content_folder_setup_command.should include message[:ssh_url]
        initializer.terminate
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
writefully-0.4.1 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.4.0 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.3.6 spec/lib/writefully/tools/initializer_spec.rb