Minor test tweaks

This commit is contained in:
Will Marshall
2014-05-29 11:52:46 +10:00
parent 74211cbfc7
commit b757629bfa
2 changed files with 1 additions and 2 deletions

View File

@@ -206,7 +206,7 @@ feature %q{
page.should have_selector "tr#li_#{li2.id}", visible: true
select2_select s1.name, from: "supplier_filter"
page.should have_selector "tr#li_#{li1.id}", visible: true
page.should_not have_selector "tr#li_#{li2.id}", visible: true
page.should_not have_selector "tr#li_#{li2.id}"
end
it "displays all line items when 'All' is selected from supplier filter" do

View File

@@ -77,7 +77,6 @@ describe 'Order service', ->
$httpBackend.flush()
expect(Order.errors).toEqual {error: "frogs"}
it "Munges the order attributes to add _attributes as Rails needs", ->
expect(Order.preprocess().bill_address_attributes).not.toBe(undefined)
expect(Order.preprocess().bill_address).toBe(undefined)