ホーム > 今日のテストコード > rspecのincludeマッチャ

rspecのincludeマッチャ

rspecのincludeマッチャ。Hashの場合の挙動はバージョン間で色々と違いがありますね。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'rubygems'
gem 'rspec', '>= 1.1.12'
require 'spec'
 
describe 'includeマッチャ' do
 
  before :each do
    @lang_authors = { 
      :ruby => 'まつもとゆきひろ',
      :python => 'Guido van Rossum',
      :perl => 'Larry Wall'
    }
  end
 
  it 'Hashが指定されたキーを持つか' do
    # 以下はrspec 1.1.10, 1.1.11 でエラーになる
    @lang_authors.should include(:ruby)
    @lang_authors.should include(:python)
    @lang_authors.should_not include(:vb)
  end
 
  it 'Hashが指定されたキーと値の組み合わせを持つか' do
    # 以下はrspec 1.1.10より前だと失敗する
    @lang_authors.should include(:ruby => 'まつもとゆきひろ')
    @lang_authors.should_not include(:ruby => 'まつもとひろゆき')
  end
 
  it 'その他はinclude?による評価' do
    @lang_authors[:python].should include('os')
    @lang_authors.keys.should include(:perl)
  end
 
end

参考:

  1. 2020 年 8 月 6 日 01:29 | #1

    There is definately a great deal to learn about this subject. I like all of the points you made.

  2. 2020 年 8 月 6 日 01:39 | #2

    Hi, I do think this is a great web site. I stumbledupon it ;) I am going to come back yet again since I book-marked it. Money and freedom is the greatest way to change, may you be rich and continue to help others.

  3. 2020 年 8 月 6 日 02:02 | #3

    I loved as much as you will receive carried out right here.
    The sketch is attractive, your authored material stylish.

    nonetheless, you command get bought an shakiness over that you wish be delivering
    the following. unwell unquestionably come more formerly again as exactly the same
    nearly a lot often inside case you shield this hike.

  4. 2020 年 8 月 6 日 03:27 | #4

    Excellent post. I will be dealing with some of these issues as well..

  5. 2020 年 8 月 6 日 03:41 | #5

    Everything is very open with a clear description of the issues. It was really informative. Your website is very useful. Thank you for sharing!

  6. 2020 年 8 月 6 日 04:48 | #6

    Everything is very open with a precise clarification of the issues. It was definitely informative. Your site is very useful. Thank you for sharing!

  7. 2020 年 8 月 6 日 05:10 | #7

    Way cool! Some very valid points! I appreciate you penning this article and the rest of the site is very good.

  8. 2020 年 8 月 6 日 05:20 | #8

    I must thank you for the efforts you have put in writing this site. I am hoping to check out the same high-grade content from you later on as well. In fact, your creative writing abilities has encouraged me to get my very own website now ;)

  9. 2020 年 8 月 6 日 05:43 | #9

    I’m extremely pleased to discover this site. I want to to thank you for your time for this particularly fantastic read!! I definitely really liked every bit of it and i also have you book-marked to check out new stuff in your web site.

  10. 2020 年 8 月 6 日 06:04 | #10

    Having read this I thought it was very enlightening. I appreciate you taking the time and energy to put this short article together. I once again find myself spending a significant amount of time both reading and commenting. But so what, it was still worthwhile!

  11. 2020 年 8 月 6 日 13:02 | #11

    I really love your site.. Excellent colors & theme. Did you develop this website yourself? Please reply back as I’m planning to create my own personal blog and would like to know where you got this from or what the theme is called. Appreciate it!

  12. 2020 年 8 月 6 日 13:33 | #12

    I love it when folks get together and share opinions. Great site, stick with it!

  13. 2020 年 8 月 6 日 13:36 | #13

    This is a topic that’s near to my heart… Cheers! Where are your contact details though?

  14. 2020 年 8 月 6 日 14:19 | #14

    Good information. Lucky me I found your blog by chance (stumbleupon). I’ve bookmarked it for later!

  15. 2020 年 8 月 6 日 14:35 | #15

    Aw, this was a really good post. Taking a few minutes and actual effort to produce a superb article… but what can I say… I procrastinate a whole lot and never manage to get nearly anything done.

  16. 2020 年 8 月 6 日 14:40 | #16

    Saved as a favorite, I like your website!

  17. 2020 年 8 月 6 日 15:06 | #17

    I’m amazed, I have to admit. Rarely do I come across a blog that’s both equally educative and amusing, and without a doubt, you have hit the nail on the head. The issue is something that not enough men and women are speaking intelligently about. Now i’m very happy I found this in my search for something relating to this.

  18. 2020 年 8 月 6 日 17:03 | #18

    deltasone prednisone 10mg https://bvsinfotech.com/

  19. 2020 年 8 月 6 日 17:41 | #19

    Hey there! I just would like to offer you a huge thumbs up for your excellent info you have got here on this post. I am coming back to your blog for more soon.

  20. 2020 年 8 月 6 日 18:08 | #20

    Pretty! This has been a really wonderful article. Many thanks for providing this info.

  21. 2020 年 8 月 6 日 18:16 | #21

    You are so cool! I don’t think I’ve truly read something like this before. So great to find another person with a few genuine thoughts on this subject. Really.. thank you for starting this up. This website is one thing that’s needed on the web, someone with a bit of originality!

  22. 2020 年 8 月 6 日 18:19 | #22

    Good day! I could have sworn I’ve been to this web site before but after going through a few of the articles I realized it’s new to me. Anyways, I’m definitely happy I stumbled upon it and I’ll be book-marking it and checking back often!

  23. 2020 年 8 月 6 日 18:27 | #23

    Hello there! I could have sworn I’ve visited this website before but after browsing through many of the articles I realized it’s new to me. Nonetheless, I’m certainly happy I discovered it and I’ll be bookmarking it and checking back frequently!

  24. 2020 年 8 月 6 日 18:55 | #24

    Olympic lifts give you a lot of functional strength which will help you a lot in any position you play.

  25. 2020 年 8 月 6 日 19:13 | #25

    I blog frequently and I really thank you for your information. This great article has truly peaked my interest. I’m going to take a note of your blog and keep checking for new details about once a week. I opted in for your Feed too.

  26. 2020 年 8 月 6 日 19:19 | #26

    I really like reading an article that will make people think. Also, many thanks for allowing for me to comment!

  27. 2020 年 8 月 6 日 19:43 | #27

    The very next time I read a blog, I hope that it does not fail me just as much as this one. After all, I know it was my choice to read through, but I genuinely thought you would probably have something useful to talk about. All I hear is a bunch of moaning about something that you can fix if you weren’t too busy looking for attention.

  28. 2020 年 8 月 6 日 21:32 | #28

    Good info. Lucky me I discovered your site by chance (stumbleupon). I’ve bookmarked it for later!

  29. 2020 年 8 月 6 日 21:39 | #29

    After I originally left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and now whenever a comment is added I receive 4 emails with the exact same comment. Is there a way you can remove me from that service? Cheers!

  30. 2020 年 8 月 6 日 21:43 | #30

    Very good write-up. I definitely appreciate this site. Thanks!

  31. 2020 年 8 月 6 日 21:50 | #31

    Greetings, I think your web site may be having web browser compatibility problems. Whenever I look at your site in Safari, it looks fine but when opening in I.E., it has some overlapping issues. I merely wanted to give you a quick heads up! Aside from that, wonderful site!

  32. 2020 年 8 月 6 日 22:05 | #32

    I was recommended this web site via my cousin. I am now not certain whether
    this submit is written by way of him as no one else recognise such exact approximately my
    problem. You’re amazing! Thanks!

  33. 2020 年 8 月 6 日 23:29 | #33

    bookmarked!!, I really like your web site!

  34. 2020 年 8 月 7 日 01:00 | #34

    It’s hard to come by well-informed people about this subject, however, you seem like you know what you’re talking about! Thanks

  35. 2020 年 8 月 7 日 01:08 | #35

    After going over a few of the blog posts on your site, I seriously appreciate your way of writing a blog. I added it to my bookmark site list and will be checking back in the near future. Please visit my website as well and tell me your opinion.

  36. 2020 年 8 月 7 日 01:29 | #36

    Excellent article. I will be going through some of these issues as well..

  37. 2020 年 8 月 7 日 02:17 | #37

    I was pretty pleased to find this site. I need to to thank you for ones time for this fantastic read!! I definitely loved every part of it and i also have you book-marked to see new things on your web site.

  38. 2020 年 8 月 7 日 02:28 | #38

    Players on the other team will try to strip the football away from you to force a fumble.

  39. 2020 年 8 月 7 日 02:29 | #39

    Good article! We will be linking to this particularly great content on our website. Keep up the great writing.

  40. 2020 年 8 月 7 日 03:14 | #40

    I blog quite often and I genuinely thank you for your information. This great article has truly peaked my interest. I’m going to bookmark your blog and keep checking for new information about once a week. I subscribed to your RSS feed too.

  41. 2020 年 8 月 7 日 03:33 | #41

    I have to voice my respect for your kindness giving support to individuals who should have assistance with in this field. Your very own commitment to getting the solution around has been surprisingly important and have really helped girls like me to get to their ambitions. Your amazing invaluable recommendations entails so much to me and especially to my peers. Thanks a ton; from each one of us.

  42. 2020 年 8 月 7 日 04:00 | #42

    This is a topic that is near to my heart… Thank you! Exactly where are your contact details though?

  43. 2020 年 8 月 7 日 04:08 | #43

    Excellent article! We are linking to this great article on our website. Keep up the good writing.

  44. 2020 年 8 月 7 日 04:30 | #44

    I’m more than happy to uncover this great site. I wanted to thank you for your time for this particularly wonderful read!! I definitely loved every bit of it and i also have you book marked to check out new stuff in your web site.

  45. 2020 年 8 月 7 日 12:00 | #45

    I want to to thank you for this very good read!! I definitely loved every little bit of it. I’ve got you bookmarked to check out new things you post…

  46. 2020 年 8 月 7 日 13:31 | #46

    Spot on with this write-up, I honestly believe that this web site needs a lot more attention. I’ll probably be back again to read more, thanks for the advice!

  47. 2020 年 8 月 7 日 13:40 | #47

    I really love your site.. Pleasant colors & theme. Did you create this web site yourself? Please reply back as I’m trying to create my own blog and want to learn where you got this from or just what the theme is called. Appreciate it!

  48. 2020 年 8 月 7 日 14:03 | #48

    It’s hard to find educated people about this topic, however, you sound like you know what you’re talking about! Thanks

  49. 2020 年 8 月 7 日 14:09 | #49

    Remarkable issues here. I am very glad to look your post.

    Thanks so much and I’m taking a look forward to touch you.

    Will you kindly drop me a e-mail?

  50. 2020 年 8 月 7 日 14:29 | #50

    A fascinating discussion is worth comment. I do think that you should publish more about this issue, it may not be a taboo matter but generally folks don’t speak about such subjects. To the next! Kind regards!!

コメントページ
1 131 132 133 134 135 202 344
  1. 2020 年 4 月 14 日 19:42 | #1
  2. 2020 年 4 月 20 日 11:24 | #2
  3. 2020 年 4 月 26 日 04:06 | #3
  4. 2020 年 4 月 26 日 09:54 | #4
  5. 2020 年 4 月 30 日 00:35 | #5
  6. 2020 年 5 月 5 日 14:56 | #6
  7. 2020 年 5 月 5 日 19:12 | #7
  8. 2020 年 5 月 10 日 00:44 | #8
  9. 2020 年 6 月 30 日 00:36 | #9
  10. 2020 年 7 月 11 日 18:18 | #10
  11. 2020 年 7 月 19 日 08:12 | #11
  12. 2020 年 7 月 23 日 13:36 | #12
  13. 2020 年 7 月 24 日 15:13 | #13
  14. 2020 年 7 月 26 日 19:30 | #14
  15. 2020 年 7 月 30 日 02:39 | #15
  16. 2020 年 7 月 30 日 09:32 | #16
  17. 2020 年 8 月 5 日 02:49 | #17
  18. 2020 年 8 月 6 日 17:10 | #18
  19. 2020 年 8 月 6 日 20:26 | #19
  20. 2020 年 8 月 6 日 22:52 | #20
  21. 2020 年 8 月 7 日 06:34 | #21
  22. 2020 年 8 月 8 日 18:57 | #22
  23. 2020 年 8 月 9 日 18:49 | #23
  24. 2020 年 8 月 9 日 23:00 | #24
  25. 2020 年 8 月 9 日 23:41 | #25
  26. 2020 年 8 月 10 日 00:54 | #26
  27. 2020 年 8 月 10 日 00:58 | #27
  28. 2020 年 8 月 10 日 04:59 | #28
  29. 2020 年 8 月 10 日 05:28 | #29
  30. 2020 年 8 月 10 日 06:33 | #30
  31. 2020 年 8 月 10 日 08:31 | #31
  32. 2020 年 8 月 10 日 10:10 | #32
  33. 2020 年 8 月 10 日 11:39 | #33
  34. 2020 年 8 月 10 日 11:51 | #34
  35. 2020 年 8 月 10 日 14:46 | #35
  36. 2020 年 8 月 10 日 16:38 | #36
  37. 2020 年 8 月 10 日 21:58 | #37
  38. 2020 年 8 月 11 日 01:52 | #38
  39. 2020 年 8 月 11 日 02:56 | #39
  40. 2020 年 8 月 11 日 04:06 | #40
  41. 2020 年 8 月 11 日 06:30 | #41
  42. 2020 年 8 月 11 日 07:58 | #42
  43. 2020 年 8 月 11 日 08:39 | #43
  44. 2020 年 8 月 11 日 10:45 | #44
  45. 2020 年 8 月 11 日 12:32 | #45
  46. 2020 年 8 月 11 日 16:00 | #46
  47. 2020 年 8 月 11 日 16:08 | #47
  48. 2020 年 8 月 11 日 17:49 | #48
  49. 2020 年 8 月 11 日 19:07 | #49
  50. 2020 年 8 月 11 日 20:38 | #50
  51. 2020 年 8 月 11 日 21:47 | #51
  52. 2020 年 8 月 11 日 23:00 | #52
  53. 2020 年 8 月 12 日 00:35 | #53
  54. 2020 年 8 月 12 日 04:22 | #54
  55. 2020 年 8 月 12 日 05:47 | #55
  56. 2020 年 8 月 12 日 07:27 | #56
  57. 2020 年 8 月 12 日 09:21 | #57
  58. 2020 年 8 月 12 日 11:38 | #58
  59. 2020 年 8 月 12 日 12:38 | #59
  60. 2020 年 8 月 12 日 17:43 | #60
  61. 2020 年 8 月 12 日 18:31 | #61
  62. 2020 年 8 月 12 日 19:15 | #62
  63. 2020 年 8 月 12 日 21:59 | #63
  64. 2020 年 8 月 12 日 23:26 | #64
  65. 2020 年 8 月 12 日 23:57 | #65
  66. 2020 年 8 月 13 日 01:55 | #66
  67. 2020 年 8 月 13 日 02:34 | #67
  68. 2020 年 8 月 13 日 04:35 | #68
  69. 2020 年 8 月 13 日 07:31 | #69
  70. 2020 年 8 月 13 日 09:19 | #70
  71. 2020 年 8 月 13 日 10:54 | #71
  72. 2020 年 8 月 13 日 14:16 | #72
  73. 2020 年 8 月 13 日 15:03 | #73
  74. 2020 年 8 月 13 日 16:43 | #74
  75. 2020 年 8 月 13 日 17:00 | #75
  76. 2020 年 8 月 13 日 19:12 | #76
  77. 2020 年 8 月 13 日 20:30 | #77
  78. 2020 年 8 月 14 日 01:49 | #78
  79. 2020 年 8 月 14 日 04:08 | #79
  80. 2020 年 8 月 14 日 07:18 | #80
  81. 2020 年 8 月 14 日 08:03 | #81
  82. 2020 年 8 月 14 日 09:28 | #82
  83. 2020 年 8 月 14 日 10:01 | #83
  84. 2020 年 8 月 14 日 13:19 | #84
  85. 2020 年 8 月 14 日 17:46 | #85
  86. 2020 年 8 月 14 日 19:50 | #86
  87. 2020 年 8 月 14 日 21:15 | #87
  88. 2020 年 8 月 15 日 00:16 | #88
  89. 2020 年 8 月 15 日 16:15 | #89
  90. 2020 年 8 月 16 日 17:04 | #90
  91. 2020 年 8 月 17 日 16:51 | #91
  92. 2020 年 8 月 17 日 18:32 | #92
  93. 2020 年 8 月 19 日 17:43 | #93
  94. 2020 年 8 月 20 日 17:08 | #94
  95. 2020 年 8 月 22 日 20:46 | #95
  96. 2020 年 8 月 24 日 14:35 | #96
  97. 2020 年 8 月 25 日 06:50 | #97
  98. 2020 年 8 月 25 日 17:22 | #98
  99. 2020 年 8 月 26 日 17:07 | #99
  100. 2020 年 8 月 26 日 17:21 | #100
  101. 2020 年 8 月 26 日 18:47 | #101
  102. 2020 年 8 月 26 日 19:12 | #102
  103. 2020 年 8 月 26 日 21:33 | #103
  104. 2020 年 8 月 27 日 07:46 | #104
  105. 2020 年 8 月 28 日 07:07 | #105
  106. 2020 年 8 月 29 日 17:44 | #106
  107. 2020 年 8 月 30 日 19:59 | #107
  108. 2020 年 8 月 31 日 05:48 | #108
  109. 2020 年 8 月 31 日 06:37 | #109
  110. 2020 年 8 月 31 日 17:09 | #110
  111. 2020 年 9 月 1 日 23:09 | #111
  112. 2020 年 9 月 2 日 01:22 | #112
  113. 2020 年 9 月 2 日 01:42 | #113
  114. 2020 年 9 月 2 日 04:47 | #114
  115. 2020 年 9 月 2 日 06:22 | #115
  116. 2020 年 9 月 2 日 07:15 | #116
  117. 2020 年 9 月 2 日 15:52 | #117
  118. 2020 年 9 月 2 日 17:37 | #118
  119. 2020 年 9 月 3 日 07:05 | #119
  120. 2020 年 9 月 4 日 04:36 | #120
  121. 2020 年 9 月 6 日 16:58 | #121
  122. 2020 年 9 月 8 日 06:41 | #122
  123. 2020 年 9 月 13 日 07:14 | #123
  124. 2020 年 9 月 13 日 18:43 | #124
  125. 2020 年 9 月 14 日 19:29 | #125
  126. 2020 年 9 月 16 日 07:02 | #126
  127. 2020 年 9 月 17 日 16:14 | #127
  128. 2020 年 9 月 17 日 16:27 | #128
  129. 2020 年 9 月 17 日 20:57 | #129
  130. 2020 年 9 月 18 日 05:48 | #130