Skip to content

Instantly share code, notes, and snippets.

@ch1c0t
Created December 21, 2016 20:29
Show Gist options
  • Save ch1c0t/80ff5aff2b624da888255b8cbd81c212 to your computer and use it in GitHub Desktop.
Save ch1c0t/80ff5aff2b624da888255b8cbd81c212 to your computer and use it in GitHub Desktop.
- rspec:0:./spec/http_spec.rb:8/Hobby::JSON #<Hobby::Test:0x00000003018e40> works
evil:Hobby::JSON.included:/home/ch1c0t/sources/ruby/hobby-json/lib/hobby/json.rb:6:581f7
@@ -1,5 +1,5 @@
-def self.included(app)
+def self.included
app.use(Rack::ContentType, "application/json")
app.response = Response
end
-----------------------
Mutant configuration:
Matcher: #<Mutant::Matcher::Config match_expressions: [Hobby::JSON]>
Integration: Mutant::Integration::Rspec
Jobs: 2
Includes: []
Requires: []
Subjects: 2
Mutations: 46
Results: 46
Kills: 45
Alive: 1
Runtime: 16.06s
Killtime: 26.93s
Overhead: -40.37%
Mutations/s: 2.86
Coverage: 97.83%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment