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