sample/features/step_definitions/steps.rb in cukedep-0.1.08 vs sample/features/step_definitions/steps.rb in cukedep-0.1.09

- old
+ new

@@ -13,11 +13,11 @@ expect($store.search_video(a_title)).to be_nil end Then(/^I should see the video "(.*?)" as (available)$/) do |a_title, a_state| found_video = $store.search_video(a_title) - expect(found_video.state).not_to eq(a_state.to_sym) + expect(found_video.state).to eq(a_state.to_sym) end When(/^I remove the video "(.*?)"$/) do |a_title| found_video = $store.search_video(a_title) expect(found_video).not_to be_nil @@ -28,15 +28,15 @@ Given(/^there is no member yet$/) do $store.send(:zap_members!) # Why is this method seen as private? end Then(/^I should see member "(.*?)" as unknown$/) do |member_name| - $store.search_member(member_name).should be_nil + expect($store.search_member(member_name)).to be_nil end Then(/^I should see member "(.*?)" as registered$/) do |member_name| - $store.search_member(member_name).should_not be_nil + expect($store.search_member(member_name)).not_to be_nil puts "Member #{member_name} is registered." end Given(/^I subscribe "(.*?)"$/) do |member_name| $store.add_member(member_name) @@ -59,10 +59,10 @@ When(/^I register my credentials "(.*?)"$/) do |credential| $store.add_user(credential) end Then(/^I should see a welcome message$/) do - #expect($store.search_user(@entered_credential)).to be_nil + expect($store.search_user(@entered_credential)).not_to be_nil puts "Welcome to the rental application." end When(/^I register the rental of "(.*?)" for "(.*?)"$/) do |a_title, member_name| \ No newline at end of file