Sha256: 79635548b6526368abb5a073fc658d768ce22c530cba0fa61f64fda7cc9cc474
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/integration_helper' require 'locomotive/wagon/cli' describe Locomotive::Wagon::CLI do subject { capture(:stdout) { command } } describe '#version' do let(:command) { Locomotive::Wagon::CLI::Main.start(['version']) } it { is_expected.to eq '2.0.0-alpha' } end # describe '#auth' do # subject { } # expect(capture(:stdout) { A.new.invoke(:two) }).to eq("2\n3\n") } # it '' # let(:output) { } # end end # describe Locomotive::Wagon::CLI do # it "overrides subdomains and domains in different environments" do # clone_site # deploy = YAML.load_file('site/config/deploy.yml') # deploy["staging"] = deploy["production"].merge("domains" => ["staging.example.com"], "subdomain" => "staging", "host" => "staging.example.com:3000") # File.write('site/config/deploy.yml', deploy.to_yaml) # VCR.use_cassette("staging") do # Locomotive::Wagon::CLI::Main.start(['push', 'staging', 'site', '-f']) # end # WebMock.should_not have_requested(:put, /sites\/.+.json\?auth_token=.+/).with(body: /site\[subdomain\]=sample/) # WebMock.should have_requested(:put, /sites\/.+.json\?auth_token=.+/).with(body: /site\[subdomain\]=staging&site\[domains\]\[\]=staging.example.com/).once # end # end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
locomotivecms_wagon-2.0.0.pre.alpha | spec/integration/cli_spec.rb |