File: integration_spec.rb

package info (click to toggle)
ruby-hashie 5.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 884 kB
  • sloc: ruby: 7,049; sh: 8; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (3)
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_error
    end
  end
end