Topic: Trouble with Capybara and RSpec on a new model spec

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) Mailer pages mail us with valid information should send a mail
    Failure/Error: expect { click_button submit}.to change(Mailer, :count).by(1)       
count should have been changed by 1, but was changed by 0   
# ./spec/requests/mailer_pages_spec.rb:31:in `block (4 levels) in <top (required)>'
Finished in 0.89134 seconds
2 examples, 1 failure
Failed examples:rspec ./spec/requests/mailer_pages_spec.rb:30
# Mailer pages mail us with valid information should send a mail
Randomized with seed 17352

Last edited by code-vortex (2013-05-01 20:20:13)

Re: Trouble with Capybara and RSpec on a new model spec

Hello

Please provide your code if you hope some help...