File: configuration_spec.rb

package info (click to toggle)
ruby-specinfra 2.89.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,412 kB
  • sloc: ruby: 10,338; sh: 4; makefile: 4
file content (30 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'spec_helper'

describe 'RSpec.configuration.path' do
  before do
    RSpec.configure do |c|
      c.path = 'foo'
    end
  end

  after do
    RSpec.configure do |c|
      c.path = nil
    end
  end

  subject { RSpec.configuration.path }

  it { should eq Specinfra.configuration.path }
end

Specinfra.configuration.os = 'foo'
describe Specinfra.configuration.os do
  it { should eq 'foo' }
end

Specinfra.configuration.instance_variable_set(:@os, nil)
RSpec.configuration.os = nil
describe Specinfra.configuration.os do
  it { should be_nil }
end