Sha256: 2107ba7a33b7f29adb263ca88d26a97735907399e73d307d78c18faaefa1de54
Contents?: true
Size: 581 Bytes
Versions: 2
Compression:
Stored size: 581 Bytes
Contents
require 'spec_helper' describe VersionController, type: :controller do routes { Maestrano::Connector::Rails::Engine.routes } describe 'index' do subject { get :index, format: :json } before { allow(Gem).to receive(:loaded_specs).and_return({'maestrano-connector-rails' => Gem::Specification.new('maestrano-connector-rails', '1.2')}) } it 'returns a version hash' do subject expect(JSON.parse(response.body)).to eql('framework_version'=>'1.2', 'env' => 'test', 'ruby_version' => RUBY_VERSION, 'ruby_engine' => RUBY_ENGINE) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
maestrano-connector-rails-2.0.0 | spec/controllers/version_controller_spec.rb |
maestrano-connector-rails-2.0.0.pre.RC13 | spec/controllers/version_controller_spec.rb |