Sha256: 4469c6bb8eef52adb4106f76a0bb3c302bad32d24db88f0ccfb819e1119d1a26

Contents?: true

Size: 705 Bytes

Versions: 11

Compression:

Stored size: 705 Bytes

Contents

require 'spec_helper'

describe 'App42::Command' do
  describe 'Info' do 

    before(:all) do
      @app_name = 'demo'
    end

    context("with right app name") do

  	  it 'Should return correct app information json' do
  	    response = App42::Command::Base.new.app_information 'info', @app_name
  	    path = "#{APP_ROOT}/app42/spec/data/info.yml"
  	    info = YAML.load_file(path)
  	    response.should eql info
  	  end

  	  it 'Should return correct app state json' do
  	    response = App42::Command::Base.new.app_information 'state', @app_name
  	    path = "#{APP_ROOT}/app42/spec/data/state.yml"
  	    info = YAML.load_file(path)
  	    response.should eql info
  	  end
	  end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
app42-0.7.0 spec/app42/command/info_spec.rb
app42-0.6.4 spec/app42/command/info_spec.rb
app42-0.6.3 spec/app42/command/info_spec.rb
app42-0.6.2 spec/app42/command/info_spec.rb
app42-0.6.1 spec/app42/command/info_spec.rb
app42-0.6.0 spec/app42/command/info_spec.rb
app42-0.5.10 spec/app42/command/info_spec.rb
app42-0.5.9 spec/app42/command/info_spec.rb
app42-0.5.8 spec/app42/command/info_spec.rb
app42-0.5.7 spec/app42/command/info_spec.rb
app42-0.5.6 spec/app42/command/info_spec.rb