More advance signup flow

This commit is contained in:
2015-02-24 17:56:06 +01:00
parent 16418dde30
commit cb723ea432
19 changed files with 123 additions and 48 deletions
@@ -35,15 +35,9 @@ step "the supplier clicks on the new email confirmation link" do
visit @confirmation_link
end
step "the supplier should be redirected to the supplier settings path" do
# route_should_be 'supplier#edit'
ember_route_should_be '/settings'
end
step "the supplier email is the new email and the unconfirmed email is empty" do
step "the supplier email is the new email" do
@supplier.reload
@supplier.email.should == 'new-supplier-mail@mozo.bar'
@supplier.unconfirmed_email.should be_blank
end
step "the supplier selects :time_zone as Time Zone" do |visual_time_zone|
@@ -51,6 +45,7 @@ step "the supplier selects :time_zone as Time Zone" do |visual_time_zone|
end
step "the supplier timezone should be :time_zone" do |time_zone|
sleep 1
@supplier.reload
@supplier.time_zone.should == time_zone
end