Permalink
Browse files

make "the JSON should have the following" not skip the first assertion

  • Loading branch information...
1 parent 26c9e8e commit c9b620cc790f7117e3e00fb0b3a1cb0402cf3a94 @levinalex committed Oct 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/json_spec/cucumber.rb
@@ -59,7 +59,7 @@
end
Then /^the (?:JSON|json)(?: response)?(?: at "(.*)")? should have the following:$/ do |base, table|
- table.rows.each do |path, value|
+ table.raw.each do |path, value|
path = [base, path].compact.join("/")
if value

0 comments on commit c9b620c

Please sign in to comment.