Reordered error messages to match order of fields #89

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@gwagener
Contributor

No description provided.

@parndt parndt and 1 other commented on an outdated diff Jul 11, 2012
spec/requests/refinery/inquiries/inquiries_spec.rb
page.should have_no_content("Phone can't be blank")
Refinery::Inquiries::Inquiry.count.should == 0
end
+
+ it "displays the error messages in the same order as the fields" do
+ visit refinery.inquiries_new_inquiry_path
+
+ click_button "Send message"
+
+ page.body.should =~ /#{name_error_message}.+#{email_error_message}.+#{message_error_message}/m
@parndt
parndt Jul 11, 2012 Member

can you use match instead of =~ or does that not work?

@gwagener
gwagener Jul 11, 2012 Contributor

Done :)

@parndt
Member
parndt commented Jul 19, 2012

This was merged thanks

@parndt parndt closed this Jul 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment