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.7.1 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.6.12 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.6.11 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.6.10 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.6.9 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.6.7 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.6.6 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.6.5 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.6.4 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.6.3 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.6.2 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.5.1 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.5.0 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.4.10 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.4.8 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.4.7 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.4.6 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.4.5 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.4.4 spec/lib/writefully/tools/initializer_spec.rb
writefully-0.4.2 spec/lib/writefully/tools/initializer_spec.rb