You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: segments_system_test.rb
    path of file: ./repos/workarea/admin/test/system/workarea/admin
    
    the code of the file until where you have to start completion: require 'test_helper'

module Workarea
  module Admin
    class SegmentsSystemTest < SystemTest
      include Admin::IntegrationTest

      def test_creating_a_segment
        visit admin.segments_path
        click_link 'add_segment'

        fill_in 'segment[name]', with: 'Big Spenders'
        click_button 'save_setup'

        assert(page.has_content?('Success'))
        select t('workarea.admin.fields.revenue'), from: 'rule_type'
        click_button 'add_rule'

        fill_in 'rule[minimum]', with: '10000'
        click_button 'save_rule'

        assert(page.has_content?('S
    
      def test_creating_a_segment
        visit admin.segments_path
        click_link 'add_segment'

        fill_in 'segment[name]', with: 'Big Spenders'
        click_button 'save_setup'

        assert(page.has_content?('Success'))
        select t('workarea.admin.fields.revenue'), from: 'rule_type'
        click_button 'add_rule'

        fill_in 'rule[minimum]', with: '10000'
        click_button 'save_rule'

        assert(page.has_content?('Success'))
        assert(page.has_content?('10,000'))

        click_link "#{t('workarea.admin.create_segments.rules.complete')} â†’"
        assert_current_path(admin.segment_path(Segment.first))

        visit admin.segments_path
        assert(page.has_content?('Big Spenders'))
      end