Hi All,
Iam new to ruby application having little knowledge,and currently am
working for a testing application which is designed on
Ruby,capybara,rspec and am having an issue i.e when am click on a
button a javascript popup is displaying and sometime modalpopup also
displaying but am unable to clic
>it "should send a mail" do
> expect { click_button submit}.to change(Mailer, :count).by(1)
>end
In my opinion, capybara request specs are more for expressing the expectation of
what a user should see...
A user has no idea that clicking a button is going to increase some
On Wed, May 1, 2013 at 5:07 PM, Mostafa Hussein wrote:
>
> before { visit mailers_path }
>
This should probably be
before {visit new_mailer_path}
mailers_path takes you to /mailers -> MailerController#index method
Check out http://guides.rubyonrails.org/routing.html#paths-and-urls
Vigh
I have searched a lot for a solution, but I could not find it! I am
trying to make a rails application after watching Michael Hartl's
tutorial and when i fill data manually and submit it nothing happens and
nothing records in the Mailers table and I am facing the following
error:
Failures:
1) M