Add failing spec for viewing distributors in sidebar

This commit is contained in:
Rohan Mitchell
2012-06-19 11:32:49 +10:00
parent b38692d8c0
commit 5e9fa37f11

View File

@@ -0,0 +1,28 @@
require 'spec_helper'
feature %q{
As a consumer
I want to see a list of distributors
So that I can shop by a particular distributor
} do
include AuthenticationWorkflow
include WebHelper
background do
# Given some distributors
3.times { Spree::Distributor.make! }
end
scenario "viewing list of distributors" do
# When I go to the home page
visit spree.root_path
# Then I should see a list containing all distributors
Spree::Distributor.all.each do |distributor|
page.should have_selector 'a', :text => distributor.name
end
end
scenario "browsing products by distributor"
end