gem "simplecov", :require => false
gem "shoulda-matchers"
gem 'email_spec'
+ gem 'resque_spec'
end
resque_mailer (2.0.3)
actionmailer (>= 3.0.0)
resque (>= 1.2.3)
+ resque_spec (0.11.0)
+ resque (>= 1.19.0)
+ rspec (>= 2.5.0)
rspec (2.10.0)
rspec-core (~> 2.10.0)
rspec-expectations (~> 2.10.0)
redcarpet (~> 2.1.1)
resque (~> 1.20.0)
resque_mailer
+ resque_spec
rspec-rails
sass-rails (= 3.2.5)
seed-fu
--- /dev/null
+Resque::Mailer.excluded_environments = []
fill_in 'Name', :with => 'NewProject'
fill_in 'Code', :with => 'NPR'
fill_in 'Path', :with => 'gitlabhq_1'
+ fill_in 'Description', :with => 'New Project Description'
expect { click_button "Save" }.to change { Project.count }.by(1)
@project = Project.last
end
end
it "should send valid email to user with email & password" do
- click_button "Save"
+ with_resque do
+ click_button "Save"
+ end
user = User.last
email = ActionMailer::Base.deliveries.last
email.subject.should have_content("Account was created")
end
it "should send valid email to user" do
- click_button "Submit new issue"
+ with_resque do
+ click_button "Submit new issue"
+ end
issue = Issue.last
email = ActionMailer::Base.deliveries.last
email.subject.should have_content("New Issue was created")