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
tdiary-5.0.8 vendor/bundle/gems/twitter-text-1.14.7/spec/twitter_text_spec.rb
twitter-text-1.14.7 spec/twitter_text_spec.rb
tdiary-5.0.5 vendor/bundle/gems/twitter-text-1.14.6/spec/twitter_text_spec.rb
tdiary-5.0.5 vendor/bundle/gems/twitter-text-1.14.5/spec/twitter_text_spec.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/twitter-text-1.14.5/spec/twitter_text_spec.rb
twitter-text-1.14.6 spec/twitter_text_spec.rb
tdiary-5.0.4 vendor/bundle/gems/twitter-text-1.14.5/spec/twitter_text_spec.rb
twitter-text-1.14.5 spec/twitter_text_spec.rb
twitter-text-1.14.2 spec/twitter_text_spec.rb
twitter-text-1.14.1 spec/twitter_text_spec.rb
twitter-text-1.14.0 spec/twitter_text_spec.rb
twitter-text-1.13.4 spec/twitter_text_spec.rb
twitter-text-1.13.3 spec/twitter_text_spec.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/twitter-text-1.13.0/spec/twitter_text_spec.rb
twitter-text-1.13.0 spec/twitter_text_spec.rb
twitter-text-1.12.0 spec/twitter_text_spec.rb
twitter-text-1.11.0 spec/twitter_text_spec.rb
twitter-text-1.10.0 spec/twitter_text_spec.rb
twitter-text-1.9.2 spec/twitter_text_spec.rb
twitter-text-1.9.1 spec/twitter_text_spec.rb