source: EcnlProtoTool/trunk/mrbgems/mruby-mock/README.md@ 331

Last change on this file since 331 was 331, checked in by coas-nagasima, 6 years ago

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

File size: 1.4 KB
Line 
1mruby-mock
2==========
3
4Mock class for mruby (experimental)
5
6
7## License
8
9Copyright (c) 2013 Internet Initiative Japan Inc.
10
11Permission is hereby granted, free of charge, to any person obtaining a
12copy of this software and associated documentation files (the "Software"),
13to deal in the Software without restriction, including without limitation
14the rights to use, copy, modify, merge, publish, distribute, sublicense,
15and/or sell copies of the Software, and to permit persons to whom the
16Software is furnished to do so, subject to the following conditions:
17
18The above copyright notice and this permission notice shall be included in
19all copies or substantial portions of the Software.
20
21THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27DEALINGS IN THE SOFTWARE.
28
29
30## For example:
31
32test.rb:
33
34 mock = Mocks::Mock.new
35 mock.stubs(:code).returns("200")
36 mock.stubs(:body).returns("success")
37
38 p mock.code
39 p mock.body
40
41run:
42
43 $ mruby test.rb
44 "200"
45 "success"
46
47
48
49
50
Note: See TracBrowser for help on using the repository browser.