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

Version Path
maestrano-connector-rails-2.0.0.pre.RC8 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-1.5.0 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-2.0.0.pre.RC7 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-2.0.0.pre.RC6 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-2.0.0.pre.RC5 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-2.0.0.pre.RC4 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-2.0.0.pre.RC3 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-2.0.0.pre.RC2 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-2.0.0.pre.RC1 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-1.4.0 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-1.3.5 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-1.3.4 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-1.3.3 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-1.3.2 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-1.3.1 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-1.3.0 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-1.2.3 spec/controllers/version_controller_spec.rb
maestrano-connector-rails-1.2.2 spec/controllers/version_controller_spec.rb