Used RSpec let function to fix repetition