Sha256: ed57aa5126b2ecbfd7e746778e186ec8694ca5fda4271861ece28a1252265168

Contents?: true

Size: 457 Bytes

Versions: 1

Compression:

Stored size: 457 Bytes

Contents

require 'spec_helper'

describe VoteSmart::Rating do
  describe ".get_sig" do
    it "should properly handle UTF characters" do
      VoteSmart::Rating.get_sig('1863')['sig']['description'].unpack("U*").should_not include(148)
    end

    it "shouldn't have a quoted description" do
      description = VoteSmart::Rating.get_sig('1863')['sig']['description']
      description[0].should_not == '"'
      description[-1].should_not == '"'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
votesmart-0.4.1 spec/vote_smart/rating_spec.rb