features/step_definitions/common_steps.rb in thinking-sphinx-1.3.20 vs features/step_definitions/common_steps.rb in thinking-sphinx-1.4.0

- old
+ new

@@ -153,9 +153,13 @@ current end end +Then /^the first result's "([^"]*)" should be "([^"]*)"$/ do |attribute, value| + results.first.send(attribute.to_sym).should == value +end + Then /^I can iterate by result and (\w+)$/ do |attribute| iteration = lambda { |result, attr_value| result.should be_kind_of(@model) unless attribute == "group" && attr_value.nil? attr_value.should be_kind_of(Integer)