Sha256: 7aef01620ce395d07f327bcf2c8092350a1d08fb369edf3d28313bad51896dfd

Contents?: true

Size: 409 Bytes

Versions: 39

Compression:

Stored size: 409 Bytes

Contents

# encoding: utf-8
require File.dirname(__FILE__) + '/spec_helper'

major, minor, patch = RUBY_VERSION.split('.')
if major.to_i == 1 && minor.to_i < 9
  describe "base" do
    before do
      $KCODE = 'NONE'
    end

    after do
      $KCODE = 'u'
    end

    it "should raise with invalid KCODE on Ruby < 1.9" do
      lambda do
        require 'twitter-text'
      end.should raise_error
    end
  end
end

Version data entries

39 entries across 37 versions & 5 rubygems

Version Path
twitter-text-1.9.0 spec/twitter_text_spec.rb
twitter-text-1.8.0 spec/twitter_text_spec.rb
twitter-text-1.7.0 spec/twitter_text_spec.rb
twitter-text-1.6.4 spec/twitter_text_spec.rb
twitter-text-relative-1.6.2.2 spec/twitter_text_spec.rb
twitter-text-relative-1.6.2.1 spec/twitter_text_spec.rb
twitter-text-1.6.3 spec/twitter_text_spec.rb
twitter-text-1.6.2 spec/twitter_text_spec.rb
ritter-0.0.88 spec/twitter_text_spec.rb
twitter-text-editted-1.0.0 spec/twitter_text_spec.rb
twitter-text-1.6.1 spec/twitter_text_spec.rb
twitter-text-1.6.0 spec/twitter_text_spec.rb
twitter-text-1.5.0 spec/twitter_text_spec.rb
twitter-text-1.4.17 spec/twitter_text_spec.rb
twitter-text-1.4.16 spec/twitter_text_spec.rb
twitter-text-1.4.15 spec/twitter_text_spec.rb
twitter-text-1.4.14 spec/twitter_text_spec.rb
twitter-text-1.4.13 spec/twitter_text_spec.rb
twitter-text-1.4.12 spec/twitter_text_spec.rb