tangled
alpha
login
or
join now
mackuba.eu
/
skyfall
6
fork
atom
A Ruby gem for streaming data from the Bluesky/ATProto firehose
6
fork
atom
overview
issues
pulls
pipelines
added test config
mackuba.eu
1 month ago
a1cc5988
221bd847
+39
-5
3 changed files
expand all
collapse all
unified
split
.gitignore
Gemfile
spec
spec_helper.rb
+1
.gitignore
···
2
2
.DS_Store
3
3
.rspec_status
4
4
.yardoc
5
5
+
coverage
5
6
doc
6
7
Gemfile.lock
+5
Gemfile
···
7
7
8
8
gem "rake", "~> 13.0"
9
9
gem "rspec", "~> 3.0"
10
10
+
10
11
gem 'rdoc'
11
12
gem 'yard'
13
13
+
14
14
+
gem 'mocha'
15
15
+
gem 'simplecov'
16
16
+
gem 'webmock'
+33
-5
spec/spec_helper.rb
···
1
1
# frozen_string_literal: true
2
2
3
3
-
require "skyfall"
3
3
+
require 'simplecov'
4
4
+
5
5
+
SimpleCov.start do
6
6
+
enable_coverage :branch
7
7
+
add_filter "/spec/"
8
8
+
end
9
9
+
10
10
+
require 'skyfall'
11
11
+
require 'webmock/rspec'
4
12
5
13
RSpec.configure do |config|
6
14
# Enable flags like --only-failures and --next-failure
7
15
config.example_status_persistence_file_path = ".rspec_status"
8
16
9
9
-
# Disable RSpec exposing methods globally on `Module` and `main`
10
10
-
config.disable_monkey_patching!
11
11
-
12
17
config.expect_with :rspec do |c|
13
13
-
c.syntax = :expect
18
18
+
c.syntax = [:should, :expect]
14
19
end
20
20
+
21
21
+
config.mock_with :mocha
15
22
end
23
23
+
24
24
+
module SimpleCov
25
25
+
module Formatter
26
26
+
class HTMLFormatter
27
27
+
def format(result)
28
28
+
# silence the stdout summary, just save the html files
29
29
+
unless @inline_assets
30
30
+
Dir[File.join(@public_assets_dir, "*")].each do |path|
31
31
+
FileUtils.cp_r(path, asset_output_path, remove_destination: true)
32
32
+
end
33
33
+
end
34
34
+
35
35
+
File.open(File.join(output_path, "index.html"), "wb") do |file|
36
36
+
file.puts template("layout").result(binding)
37
37
+
end
38
38
+
end
39
39
+
end
40
40
+
end
41
41
+
end
42
42
+
43
43
+
WebMock.enable!