Last change
on this file since 338 was 228, checked in by KOBAYASHI, Shinji, 15 years ago |
Terminology implementation is a little difficult
|
File size:
501 bytes
|
Rev | Line | |
---|
[228] | 1 | require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
---|
| 2 |
|
---|
| 3 | describe 'encoding in general', :shared => true do
|
---|
| 4 | before(:all) do
|
---|
| 5 | @encoding_mock = mock('encoding')
|
---|
| 6 | end
|
---|
| 7 | end
|
---|
| 8 |
|
---|
| 9 |
|
---|
| 10 | describe Encoding do
|
---|
| 11 |
|
---|
| 12 | it "should valid charset?" do
|
---|
| 13 | encodings_proxy = mock('encodings')
|
---|
| 14 | encodings_proxy.should_receive(:valid_charset?).with('UTF-8').and_return(true)
|
---|
| 15 | @encoding.stub!(:valid_charset?).and_return(encodings_proxy)
|
---|
| 16 | encodings_proxy.valid_charset?('UTF-8').should be_true
|
---|
| 17 | end
|
---|
| 18 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.