Sha256: 3da52d6a266e028c047a26c0e7b512d8e7aef1502a7d8049e406be4e63b4f736
Contents?: true
Size: 830 Bytes
Versions: 14
Compression:
Stored size: 830 Bytes
Contents
require 'spec_helper' describe "Taxonomies and taxons", :type => :feature do stub_authorization! it "admin should be able to edit taxon" do visit spree.new_admin_taxonomy_path fill_in "Name", :with => "Hello" click_button "Create" @taxonomy = Spree::Taxonomy.last visit spree.edit_admin_taxonomy_taxon_path(@taxonomy, @taxonomy.root.id) fill_in "taxon_name", :with => "Shirt" fill_in "taxon_description", :with => "Discover our new rails shirts" fill_in "permalink_part", :with => "shirt-rails" click_button "Update" expect(page).to have_content("Taxon \"Shirt\" has been successfully updated!") end it "can see taxon tree", js: true do taxonomy = create :taxonomy visit spree.edit_admin_taxonomy_path(taxonomy) expect(page).to have_content('Brand') end end
Version data entries
14 entries across 14 versions & 1 rubygems