Sha256: 75251e8ffacb086ab61dad3fc5f5dbc6f41bd89dc9d9a663c5f8425df87ee4fc
Contents?: true
Size: 503 Bytes
Versions: 18
Compression:
Stored size: 503 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"}) end end end
Version data entries
18 entries across 18 versions & 1 rubygems