Sha256: 621a49853a369782ebfb236abc554a9f0a3c315dc8753c5b10cdf31f4f8b7ef7

Contents?: true

Size: 641 Bytes

Versions: 84

Compression:

Stored size: 641 Bytes

Contents

require 'spec_helper'

describe Softcover::Commands::Deployment do

  describe "default commands" do
    before { Softcover::Commands::Deployment.stub(:article?).and_return(false) }
    subject { Softcover::Commands::Deployment.default_commands }

    it { should match /softcover build:all/ }
    it { should match /softcover build:preview/ }
    it { should match /softcover publish/ }
  end

  describe "commands helper" do
    let(:lines) { ['foo', ' #  bar', 'baz'] }
    subject { Softcover::Commands::Deployment.commands(lines) }

    it { should match /foo/ }
    it { should_not match /bar/ }
    it { should match /baz/ }
  end
end

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
softcover-1.10.4 spec/commands/deployment_spec.rb
softcover-1.10.3 spec/commands/deployment_spec.rb
softcover-1.10.2 spec/commands/deployment_spec.rb
softcover-1.10.1 spec/commands/deployment_spec.rb
softcover-1.10.0 spec/commands/deployment_spec.rb
softcover-1.9.1 spec/commands/deployment_spec.rb
softcover-1.9.0 spec/commands/deployment_spec.rb
softcover-1.8.3 spec/commands/deployment_spec.rb
softcover-1.8.2 spec/commands/deployment_spec.rb
softcover-1.8.1 spec/commands/deployment_spec.rb
softcover-1.8.0 spec/commands/deployment_spec.rb
softcover-1.7.5 spec/commands/deployment_spec.rb
softcover-1.7.4 spec/commands/deployment_spec.rb
softcover-1.7.3 spec/commands/deployment_spec.rb
softcover-1.7.2 spec/commands/deployment_spec.rb
softcover-1.7.1 spec/commands/deployment_spec.rb
softcover-1.7.0 spec/commands/deployment_spec.rb
softcover-1.6.5 spec/commands/deployment_spec.rb
softcover-1.6.4 spec/commands/deployment_spec.rb
softcover-1.6.3 spec/commands/deployment_spec.rb