Spree 1.3 upgrade: fix final failing tests

This commit is contained in:
Rob H
2013-02-20 15:16:43 +11:00
parent 055c07a466
commit a59b136864
2 changed files with 19 additions and 1 deletions

View File

@@ -6,6 +6,15 @@ feature %q{
}, js: true do
include AuthenticationWorkflow
include WebHelper
before :all do
@default_wait_time = Capybara.default_wait_time
Capybara.default_wait_time = 5
end
after :all do
Capybara.default_wait_time = @default_wait_time
end
scenario "listing enterprise fees" do
fee = create(:enterprise_fee)
@@ -14,7 +23,7 @@ feature %q{
click_link 'Configuration'
click_link 'Enterprise Fees'
page.should have_selector "option[selected]", text: fee.enterprise.name
page.should have_selector "#enterprise_fee_set_collection_attributes_0_enterprise_id", :text => fee.enterprise.name
page.should have_selector "option[selected]", text: 'Packing'
page.should have_selector "input[value='$0.50 / kg']"
page.should have_selector "option[selected]", text: 'Weight (per kg)'

View File

@@ -7,6 +7,15 @@ feature %q{
} do
include AuthenticationWorkflow
include WebHelper
before :all do
@default_wait_time = Capybara.default_wait_time
Capybara.default_wait_time = 5
end
after :all do
Capybara.default_wait_time = @default_wait_time
end
background do
@distributor = create(:distributor_enterprise, :name => 'Edible garden',