Sha256: f0b7ee3808f8f654b8c4069c04789bb98b3e7048b105f26ffc91c374c18cc502

Contents?: true

Size: 1.09 KB

Versions: 11

Compression:

Stored size: 1.09 KB

Contents

#
# Copyright 2014 Mortar Data Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
require "spec_helper"
require "mortar/command/version"

module Mortar::Command
  describe Version do

    before(:each) do
      stub_core
      
    end
    
    context("not installed via omnibus") do
      it "throws an error when running on an install not done via omnibus" do
        any_instance_of(Mortar::Command::Version) do |base|
          stderr, stdout = execute("version:upgrade");
          stderr.should == <<-STDERR
 !    Please upgrade by running 'gem install mortar'.
STDERR
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mortar-0.15.53 spec/mortar/command/version_spec.rb
mortar-0.15.52 spec/mortar/command/version_spec.rb
mortar-0.15.51 spec/mortar/command/version_spec.rb
mortar-0.15.50 spec/mortar/command/version_spec.rb
mortar-0.15.49 spec/mortar/command/version_spec.rb
mortar-0.15.48 spec/mortar/command/version_spec.rb
mortar-0.15.47 spec/mortar/command/version_spec.rb
mortar-0.15.46 spec/mortar/command/version_spec.rb
mortar-0.15.45 spec/mortar/command/version_spec.rb
mortar-0.15.44 spec/mortar/command/version_spec.rb
mortar-0.15.43 spec/mortar/command/version_spec.rb