Skip to content

Commit

Permalink
Message would crash if test identifier was nil
Browse files Browse the repository at this point in the history
  • Loading branch information
damphyr committed Apr 14, 2016
1 parent e7f307a commit 7fd68fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions History.txt
@@ -1,3 +1,5 @@
== 2.0.0.pre12 /2016-04-14
* Fixed crash when test name was nil in all reporters
== 2.0.0.pre11 /2016-04-14
* Fixed crash in detecting failures in the junit reporter
== 2.0.0.pre10 /2016-03-21
Expand Down
1 change: 1 addition & 0 deletions lib/rutema/core/framework.rb
Expand Up @@ -10,6 +10,7 @@ class Message
# timestamp
def initialize params
@test=params.fetch(:test,"")
@test||=""
@text=params.fetch(:text,"")
@timestamp=params.fetch(:timestamp,Time.now)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rutema/version.rb
Expand Up @@ -3,7 +3,7 @@ module Rutema
module Version
MAJOR=2
MINOR=0
TINY="0.pre11"
TINY="0.pre12"
STRING=[ MAJOR, MINOR, TINY ].join( "." )
end
end

0 comments on commit 7fd68fe

Please sign in to comment.