gorgon 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/lib/gorgon/rspec_runner.rb +2 -2
- data/lib/gorgon/version.rb +1 -1
- data/spec/rspec_runner_spec.rb +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDNlYzEyMzQ2ZjEyMTE1MjJjNGEyZTRmYjVlMWZhYWYxZjgwOWQwMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2I4YWRkOTFiOWIyNTY3NjI4NTAxYmRiZTg3MzY1OGE3ODZmOTk0Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDI2MWE1MGEyNDk3ZjM0ZTEzNTYwZTE5ODFkYTM4ZjQ5NzM3N2MwNzA1ZWIz
|
10
|
+
OWFmYjgxYzRiMTM1MzlhZWJmNTNmZTk3YWU1ZTYwOGIxNGRlNTljNTVkZjcx
|
11
|
+
ZGU4NmM4MTRiODkxNGQzMmJjZDQ5MmVkYmY0M2Q1ODg1MjM2Mjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTM2ZjgxYjBlNGM0ZmIzMzA1ODAwZGM5ZTAxNjQ0MjcwMmI0MDQ5M2QwYmEy
|
14
|
+
NmQyYTYyZmY5MDQwOWI3MWZlYTFhYWRhNGUwNzQxYjg1MmJlOWJiZmM3Njgx
|
15
|
+
NzNiMmRlZTE3ZTE1ZjRiMTVjOTA5NWQzYTc5MjI1YjlmYTlmZjI=
|
data/Gemfile.lock
CHANGED
data/lib/gorgon/rspec_runner.rb
CHANGED
@@ -30,9 +30,9 @@ class RspecRunner
|
|
30
30
|
private
|
31
31
|
|
32
32
|
def keep_config_modules
|
33
|
-
|
33
|
+
orig_configuration = ::RSpec.configuration.clone
|
34
34
|
yield
|
35
|
-
RSpec.configuration
|
35
|
+
::RSpec.instance_variable_set(:@configuration, orig_configuration)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
data/lib/gorgon/version.rb
CHANGED
data/spec/rspec_runner_spec.rb
CHANGED
@@ -7,12 +7,12 @@ describe RspecRunner do
|
|
7
7
|
it {should respond_to(:runner).with(0).argument}
|
8
8
|
|
9
9
|
describe "#run_file" do
|
10
|
-
let(:configuration) { double('Configuration'
|
11
|
-
:include_or_extend_modules= => nil) }
|
10
|
+
let(:configuration) { double('Configuration') }
|
12
11
|
|
13
12
|
before do
|
14
13
|
RSpec::Core::Runner.stub(:run)
|
15
|
-
RSpec.stub(configuration: configuration
|
14
|
+
RSpec.stub(configuration: configuration,
|
15
|
+
instance_variable_set: nil)
|
16
16
|
end
|
17
17
|
|
18
18
|
it "uses Rspec runner to run filename and uses the correct options" do
|
@@ -39,7 +39,8 @@ describe RspecRunner do
|
|
39
39
|
# since configuration is reset on each run
|
40
40
|
# https://github.com/rspec/rspec-core/issues/621
|
41
41
|
it 'restore initial rspec configuration' do
|
42
|
-
RSpec.
|
42
|
+
RSpec.should_receive(:instance_variable_set).
|
43
|
+
with(:@configuration, configuration)
|
43
44
|
RspecRunner.run_file "file"
|
44
45
|
end
|
45
46
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gorgon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Fitzsimmons
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-
|
15
|
+
date: 2014-04-04 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rake
|