<commit_before>
#
# Specifying rufus-scheduler
#
# Sun Jun  1 05:52:24 JST 2014
#

require 'spec_helper'


describe 'basics' do

  def tts(time)

    time.strftime('%Y-%m-%d %H:%M:%S %z') + (time.dst? ? ' dst' : '')
  end

  describe 'Time.new' do

    it 'accepts a timezone final argument' do

      pending if jruby? or ruby18?

      expect(
        tts(Time.new(2014, 1, 1, 1, 0, 0, '+01:00'))
      ).to eq('2014-01-01 01:00:00 +0100')
      expect(
        tts(Time.new(2014, 8, 1, 1, 0, 0, '+01:00'))<commit_msg>use pending("xxx") in the specs<commit_after>
#
# Specifying rufus-scheduler
#
# Sun Jun  1 05:52:24 JST 2014
#

require 'spec_helper'


describe 'basics' do

  def tts(time)

    time.strftime('%Y-%m-%d %H:%M:%S %z') + (time.dst? ? ' dst' : '')
  end

  describe 'Time.new' do

    it 'accepts a timezone final argument' do

      pending("no worky on jruby or ruby18") if jruby? or ruby18?

      expect(
        tts(Time.new(2014, 1, 1, 1, 0, 0, '+01:00'))
      ).to eq('2014-01-01 01:00:00 +0100')
      expect(
        tts(Time.new(2014, 8, 1, 1, 0, 0, '+01:00'))
{'fraction_non_alphanumeric': 0.17998163452708907, 'fraction_numerical': 0.10651974288337925, 'mean_word_length': 2.732876712328767, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4511325', 'n_tokens_mistral': 553, 'n_tokens_neox': 440, 'n_words': 122}