job = Job.new; job.send_application / connected-health.eu GmbH

job = Job.new; job.send_application / connected-health.eu GmbH
09.01.16
connected-health.eu GmbH
Deutschland, Hamburg oder Remote
jointhejourney@connected-health.eu


class Job
  def beeing_productive
    puts "on your own terms, wherever you want"
    puts "with the toolset you choose"
  end

  def together_with_a_great_team
    puts "making awesome coffee"
    puts "shaping digital health"
  end

  def send_application
    ApplicationMailer.join_the_journy.deliver
  end
end

class ApplicationMailer < ActionMailer::Base
  default from: "your_name@something.com"

  def join_the_journy
    mail(to: "jointhejourney@connected-health.eu",
         subject: "I want to drink a beer with you")
  end
end

how_to_know_more_spec.rb
feature "Getting to know us", js: true, driver: :chrome do
  scenario "visiting the jobpage" do
    visit "http://lifetime.eu/jobs#we-are-hiring"
    expect(page).to have_content("Developer")
  end

  scenario "get to know the team" do
    expect { Job.send_application }.to change { ActionMailer::Base.deliveries.count }.by(1)
  end
end

Zurück zur Übersicht