Patching a spec and naming something

This commit is contained in:
Will Marshall
2014-05-30 15:02:47 +10:00
parent 7304e24591
commit be640fd856
2 changed files with 3 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
#tabs{"ng-controller" => "TabsCtrl"}
.row
%tabset
- for name, heading in { about: "About Us",
- for name, heading in { about: "About #{current_distributor.name}",
producers: "Producers",
groups: "Groups",
contact: "Contact"}

View File

@@ -223,20 +223,19 @@ feature %q{
scenario "creating a new product" do
s = FactoryGirl.create(:supplier_enterprise)
d = FactoryGirl.create(:distributor_enterprise)
taxon = create(:taxon)
login_to_admin_section
visit '/admin/products/bulk_edit'
#save_screenshot "/Users/willmarshall/Desktop/foo.png"
#save_and_open_page
find("a", text: "NEW PRODUCT").click
page.should have_content 'NEW PRODUCT'
fill_in 'product_name', :with => 'Big Bag Of Apples'
select(s.name, :from => 'product_supplier_id')
fill_in 'product_price', :with => '10.00'
select taxon.name, from: 'product_primary_taxon_id'
click_button 'Create'
URI.parse(current_url).path.should == '/admin/products/bulk_edit'