Skip to content

Commit

Permalink
fixed a problem with comments before scenarios and example tables
Browse files Browse the repository at this point in the history
  • Loading branch information
John Small committed Mar 11, 2016
1 parent 1baf98e commit d982aa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/cukerail/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def scenario_outline(scenario)
tags += @examples_table_tags if @examples_table_tags
@test_case_hash[:tags] = tags unless tags.empty?
comments = []
comments += Formatter.create_comments_array(scenario.comments) unless scenario.comments.empty?
comments += ::Cucumber::Formatter.create_comments_array(scenario.comments) unless scenario.comments.empty?
comments += @examples_table_comments if @examples_table_comments
comments += @row_comments if @row_comments
@test_case_hash[:comments] = comments unless comments.empty?
Expand All @@ -28,7 +28,7 @@ def examples_table(examples_table)
# We want the row data to be used in making the full scenario name
@example_id = @row.send(:data).map{|k,v| "#{k}=#{v}"}.join(", ")
@examples_table_tags = create_tags_array(examples_table.tags) unless examples_table.tags.empty?
@examples_table_comments = Formatter.create_comments_array(examples_table.comments) unless examples_table.comments.empty?
@examples_table_comments = ::Cucumber::Formatter.create_comments_array(examples_table.comments) unless examples_table.comments.empty?
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/cukerail/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Cukerail
VERSION = "0.4.2"
VERSION = "0.4.3"
end

0 comments on commit d982aa6

Please sign in to comment.