Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 274 Bytes
shared_examples 'a decoder' do
specify { subject.decoded.should_not == data}
specify do
subject.as_hash.should == decoded_data
end
specify do
subject.as_clean_hash.should == decoded_clean_data
end
specify { subject.as_hash(:sym).should == data }
end