summaryrefslogtreecommitdiff
path: root/spec/integration/rails-without-dependency/integration_spec.rb
blob: 34f88636e50f53e59a29e2307fa3d6b8ff932b2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'rspec/core'

RSpec.describe 'partial-rails' do
  context 'when Rails constant is present but the railties are not' do
    before(:all) do
      class Rails
        # A class about railways
      end
    end

    it 'does not raise an exception when we require hashie' do
      expect { require 'hashie' }.not_to raise_exception(LoadError)
    end
  end
end