appmap 0.26.0 → 0.26.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +5 -0
- data/lib/appmap/rspec.rb +2 -2
- data/lib/appmap/version.rb +1 -1
- data/test/fixtures/rspec_recorder/Gemfile +1 -1
- data/test/fixtures/rspec_recorder/spec/decorated_hello_spec.rb +12 -0
- data/test/rspec_test.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 969149d7dd70e1cdcf191b07a2f5e9a7678419474d7169ec2483071ef2ab8cde
|
4
|
+
data.tar.gz: ad3ea01e6a3397452a69fd263cd21e70a50647e69445c269b86a40abad2cae76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 323a5227476b547b8ef4fd8d1b35a5cfbf2d01ec46a0764f8a1e27c95a77c8aa3da8eb76eb971f13e9cb774976fdaa5a83462307730a4085a3e1a86f1f40be9f
|
7
|
+
data.tar.gz: 622710776a9e8a9adfb29a876904c03e208b5ef219e1d0ee538f27c4dc5d7b1fd4556347dd9419f6b7e3d617c5b316d099233fe00819047c345fde2d7cdebe68
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/appmap/rspec.rb
CHANGED
@@ -11,7 +11,7 @@ module AppMap
|
|
11
11
|
require 'appmap/command/record'
|
12
12
|
@metadata ||= AppMap::Command::Record.detect_metadata
|
13
13
|
@metadata.freeze
|
14
|
-
@metadata.
|
14
|
+
@metadata.deep_dup
|
15
15
|
end
|
16
16
|
|
17
17
|
module FeatureAnnotations
|
@@ -214,7 +214,7 @@ module AppMap
|
|
214
214
|
end
|
215
215
|
|
216
216
|
def save(example_name, class_map, events: nil, feature_name: nil, feature_group_name: nil, labels: nil)
|
217
|
-
metadata = RSpec.metadata.
|
217
|
+
metadata = RSpec.metadata.tap do |m|
|
218
218
|
m[:name] = example_name
|
219
219
|
m[:app] = @config.name
|
220
220
|
m[:feature] = feature_name if feature_name
|
data/lib/appmap/version.rb
CHANGED
@@ -3,6 +3,18 @@ require 'appmap/rspec'
|
|
3
3
|
require 'hello'
|
4
4
|
|
5
5
|
describe Hello, feature_group: 'Saying hello' do
|
6
|
+
before do
|
7
|
+
# Trick appmap-ruby into thinking we're a Rails app.
|
8
|
+
stub_const('Rails', double('rails', version: 'fake.0'))
|
9
|
+
end
|
10
|
+
|
11
|
+
# The order of these examples is important. The tests check the
|
12
|
+
# appmap for 'says hello', and we want another example to get run
|
13
|
+
# before it.
|
14
|
+
it 'does not say goodbye', feature: 'Speak hello', appmap: true do
|
15
|
+
expect(Hello.new.say_hello).not_to eq('Goodbye!')
|
16
|
+
end
|
17
|
+
|
6
18
|
it 'says hello', feature: 'Speak hello', appmap: true do
|
7
19
|
expect(Hello.new.say_hello).to eq('Hello!')
|
8
20
|
end
|
data/test/rspec_test.rb
CHANGED
@@ -9,6 +9,7 @@ class RSpecTest < Minitest::Test
|
|
9
9
|
Bundler.with_clean_env do
|
10
10
|
Dir.chdir 'test/fixtures/rspec_recorder' do
|
11
11
|
FileUtils.rm_rf 'tmp'
|
12
|
+
system 'bundle config --local local.appmap ../../..'
|
12
13
|
system 'bundle'
|
13
14
|
system({ 'APPMAP' => 'true' }, %(bundle exec rspec spec/#{test_name}.rb))
|
14
15
|
|
@@ -48,6 +49,10 @@ class RSpecTest < Minitest::Test
|
|
48
49
|
assert_equal({ name: 'appmap', url: AppMap::URL, version: AppMap::VERSION }.stringify_keys, metadata['client'])
|
49
50
|
assert_includes metadata.keys, 'recorder'
|
50
51
|
assert_equal({ name: 'rspec' }.stringify_keys, metadata['recorder'])
|
52
|
+
|
53
|
+
assert_includes metadata.keys, 'frameworks'
|
54
|
+
rspec = metadata['frameworks'].select {|f| f['name'] == 'rspec'}
|
55
|
+
assert_equal 1, rspec.count
|
51
56
|
end
|
52
57
|
end
|
53
58
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.26.
|
4
|
+
version: 0.26.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Gilpin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|