update cucumber step defs to rspec 3 assertion syntax.

This commit is contained in:
Micah Geisel 2018-05-04 12:41:54 -07:00
parent fe1d9f8400
commit 68c49abf5d
8 changed files with 24 additions and 24 deletions

View file

@ -3,7 +3,7 @@ When /^I create a widget using neo4j$/ do
end
Then /^I should see ([\d]+) widget using neo4j$/ do |widget_count|
Neo4jWidget.count.should == widget_count.to_i
expect(Neo4jWidget.count).to eq widget_count.to_i
end
When /^I create a widget in one db using neo4j$/ do
@ -15,9 +15,9 @@ When /^I create a widget in another db using neo4j$/ do
end
Then /^I should see ([\d]+) widget in one db using neo4j$/ do |widget_count|
Neo4jWidgetUsingDatabaseOne.count.should == widget_count.to_i
expect(Neo4jWidgetUsingDatabaseOne.count).to eq widget_count.to_i
end
Then /^I should see ([\d]+) widget in another db using neo4j$/ do |widget_count|
Neo4jWidgetUsingDatabaseTwo.count.should == widget_count.to_i
expect(Neo4jWidgetUsingDatabaseTwo.count).to eq widget_count.to_i
end