{"action":"opened","issue":{"url":"https://api.github.com/repos/rspec/rspec-rails/issues/1370","labels_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1370/labels{/name}","comments_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1370/comments","events_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1370/events","html_url":"https://github.com/rspec/rspec-rails/issues/1370","id":77626030,"number":1370,"title":"Rspec-rails 3.2.1 - rspec-expectation specs failed on it block","user":{"login":"veera","id":362066,"avatar_url":"https://avatars.githubusercontent.com/u/362066?v=3","gravatar_id":"","url":"https://api.github.com/users/veera","html_url":"https://github.com/veera","followers_url":"https://api.github.com/users/veera/followers","following_url":"https://api.github.com/users/veera/following{/other_user}","gists_url":"https://api.github.com/users/veera/gists{/gist_id}","starred_url":"https://api.github.com/users/veera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veera/subscriptions","organizations_url":"https://api.github.com/users/veera/orgs","repos_url":"https://api.github.com/users/veera/repos","events_url":"https://api.github.com/users/veera/events{/privacy}","received_events_url":"https://api.github.com/users/veera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-18T11:49:12Z","updated_at":"2015-05-18T11:49:12Z","closed_at":null,"body":"It's a Rails 4.2.1 app with rspec-rails 3.2.1. For example consider a sample user notifier email\r\n\r\nuser_notifer.rb\r\n```\r\nclass UserNotifier < ApplicationMailer\r\n  def welcome(recipient)\r\n    @user = User.find(recipient)\r\n    mail(to: @user.email, subject: 'welcome')\r\n  end\r\nend\r\n```\r\n\r\nuser_notifier_spec.rb\r\n\r\n```\r\nrequire \"rails_helper\"\r\n\r\nRSpec.describe UserNotifier, type: :mailer do\r\n  let(:recipient) { double(:recipient) }\r\n  let(:user) { double(:user, email: 'user@example.com') }\r\n\r\n  subject { described_class.welcome(recipient) }\r\n\r\n  it \"welcome email\" do\r\n    expect(User).to receive(:find).with(recipient).and_return(user)\r\n    subject\r\n  end\r\nend\r\n```\r\n\r\nWhen i run this spec, it got failed\r\n![screen shot 2015-05-18 at 9 34 59 pm](https://cloud.githubusercontent.com/assets/362066/7680066/2504df4e-fda6-11e4-8f19-e996fd616ad8.png)\r\n\r\nwhen i was debugging, it looks subject didn't called\r\n![screen shot 2015-05-18 at 9 39 22 pm](https://cloud.githubusercontent.com/assets/362066/7680105/9e8217ce-fda6-11e4-9ff7-52a3def6aee0.png)\r\n\r\nI'm not sure, what was the problem for this issue?"}}