Sha256: 8be4282ee6be3b3523358c8568f060c1fbdf789f4d2254da24c217ecdd5b46eb
Contents?: true
Size: 563 Bytes
Versions: 1
Compression:
Stored size: 563 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Rubymisc::String do let(:test_string) { 'rubymisc' } describe '#^' do context 'given string key as an argument', :string_key => 'test' do specify "returns the result of xor operation between the receiver's bytes and the string_key's bytes" do test_string.should respond_to(:^) test_string.should_not == test_string ^ example.metadata[:string_key] test_string.should == test_string ^ example.metadata[:string_key] ^ example.metadata[:string_key] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubymisc-0.0.3 | spec/rubymisc/ext/string_spec.rb |