ホーム > 今日のテストコード > 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 年 3 月 10 日 04:52 | #1

    I simply want to mention I’m newbie to blogging and site-building and seriously enjoyed you’re page. More than likely I’m want to bookmark your blog post . You actually have wonderful articles. Thanks a lot for sharing your webpage.

  2. 2020 年 3 月 13 日 04:59 | #2

    This is the perfect web site for anyone who would like to find out about this topic. You realize a whole lot its almost hard to argue with you (not that I personally would want to…HaHa). You definitely put a new spin on a topic that has been written about for years. Wonderful stuff, just excellent.

  3. 2020 年 3 月 13 日 20:45 | #3

    Wow! This could be one of the most useful blogs we have ever come across on thesubject. Actually excellent post! I am also an expert in this topic therefore I can understand your effort.

  4. 2020 年 3 月 15 日 03:52 | #4

    Hello. excellent job. I did not anticipate this. This is a splendid articles. Thanks!

  5. 2020 年 3 月 15 日 04:29 | #5

    I was able to find good information from your articles.

  6. 2020 年 3 月 15 日 07:21 | #6

    Ill come back to check it again, thanks for your post.

  7. 2020 年 3 月 15 日 13:05 | #7

    After going over a handful of the blog posts on your web site, I truly like your technique of blogging. I book-marked it to my bookmark website list and will be checking back in the near future. Please visit my website as well and let me know your opinion.

  8. 2020 年 3 月 15 日 16:43 | #8

    This truly answered my problem, thank you!

  9. 2020 年 3 月 15 日 21:18 | #9

    Pretty! This was a really wonderful article. Thanks for supplying this information.

  10. 2020 年 3 月 15 日 23:25 | #10

    You made some respectable factors there. I seemed on the web for the problem and found most people will associate with with your website.

  11. 2020 年 3 月 16 日 01:10 | #11

    This is a topic that’s near to my heart… Take care! Where can I find the contact details for questions?

  12. 2020 年 3 月 16 日 10:28 | #12

    Hi! I simply would like to offer you a big thumbs up for the great info you have here on this post. I’ll be returning to your site for more soon.

  13. 2020 年 3 月 16 日 13:02 | #13

    When I originally commented I clicked the -Notify me when new comments are added- checkbox and also now each time a comment is included I obtain four e-mails with the very same remark. Is there any way you can remove me from that service? Thanks!

  14. 2020 年 3 月 16 日 14:19 | #14

    Saved as a favorite, I really like your web site.

  15. 2020 年 3 月 16 日 16:40 | #15

    The following time I read a blog site, I really hope that it doesn’t dissatisfy me as long as this one. I indicate, I recognize it was my option to read, yet I actually believed youd have something fascinating to state. All I hear is a bunch of whimpering regarding something that you might repair if you werent as well active searching for focus.

  16. 2020 年 3 月 16 日 16:52 | #16

    Oh my benefits! a fantastic short article dude. Thanks Nonetheless I am experiencing problem with ur rss. Don?t understand why Unable to register for it. Exists any individual obtaining identical rss problem? Any individual that understands kindly react. Thnkx

  17. 2020 年 3 月 17 日 08:14 | #17

    I blog often and I truly appreciate your content. This article has really peaked my interest. I’m going to take a note of your website and keep checking for new information about once a week. I opted in for your RSS feed too.

  18. 2020 年 3 月 18 日 14:36 | #18

    You made some good points there. I searched the web for the issue and also discovered most people will certainly go along with with your site.

  19. 2020 年 3 月 19 日 07:47 | #19

    I could not refrain from commenting. Exceptionally well written.

  20. 2020 年 3 月 20 日 02:08 | #20

    Your style is very unique in comparison to other people I have read stuff from. Thanks for posting when you’ve got the opportunity, Guess I’ll just book mark this web site.

  21. 2020 年 3 月 20 日 13:16 | #21

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

  22. 2020 年 3 月 21 日 16:51 | #22

    Would certainly you be interested in trading links?

  23. 2020 年 3 月 21 日 17:30 | #23

    There is significantly a bundle to know about this. I assume you made sure great points in functions additionally.

  24. 2020 年 3 月 22 日 04:48 | #24

    When I originally commented I clicked the -Alert me when brand-new remarks are included- checkbox and also now each time a remark is added I get 4 e-mails with the very same remark. Exists any way you can remove me from that solution? Many thanks!

  25. 2020 年 3 月 22 日 08:35 | #25

    Hi there! I simply wish to give you a big thumbs up for your great info you’ve got here on this post. I will be returning to your blog for more soon.

  26. 2020 年 3 月 22 日 20:19 | #26

    Oh my goodness! a fantastic post man. Thanks However I am experiencing issue with ur rss. Don?t know why Not able to register for it. Is there anybody getting similar rss trouble? Any person that understands kindly respond. Thnkx

  27. 2020 年 3 月 23 日 06:22 | #27

    Excellent article. I’m experiencing a few of these issues as well..

  28. 2020 年 3 月 23 日 12:19 | #28

    I was really happy to locate this web-site. I wanted to thanks for your time for this terrific read!! I most definitely delighting in every bit of it and also I have you bookmarked to look into new things you post.

  29. 2020 年 3 月 23 日 23:02 | #29

    mefloquine vs chloroquine side effects

  30. 2020 年 3 月 24 日 04:13 | #30

    This is the right blog for anyone who wishes to discover this topic. You realize a lot its almost difficult to say with you (not that I in fact would want?HaHa). You most definitely put a new spin on a subject thats been written about for several years. Great stuff, simply wonderful!

  31. 2020 年 3 月 24 日 06:25 | #31

    This website was… how do you say it? Relevant!! Finally I have found something that helped me. Thanks a lot!

  32. 2020 年 3 月 24 日 13:00 | #32

    Nice post. I learn something new and challenging on blogs I stumbleupon everyday. It’s always exciting to read through content from other authors and practice something from their websites.

  33. 2020 年 3 月 24 日 19:00 | #33

    I wanted to thank you for this fantastic read!! I certainly loved every little bit of it. I’ve got you book marked to look at new things you post…

  34. 2020 年 3 月 24 日 20:05 | #34

    you are аctuаlly a good ѡeƅmaster. The site loading pace іs amazing.
    It sort of feels that you’re ⅾoing any unique trick.
    Also, Tһe contents are masterwork. you’ve performed a fantaѕtic activitү in this subject!

  35. 2020 年 3 月 25 日 02:01 | #35

    This will be a terrific blog, would you be involved in doing an interview about how you designed it? If so e-mail me!

  36. 2020 年 3 月 25 日 09:06 | #36

    You are so cool! I don’t think I have read something like this before. So great to discover another person with some genuine thoughts on this topic. Seriously.. thanks for starting this up. This website is something that is needed on the internet, someone with a bit of originality.

  37. 2020 年 3 月 25 日 10:31 | #37

    Aw, this was a very good post. Finding the time and actual effort to produce a really good article… but what can I say… I hesitate a whole lot and never seem to get anything done.

  38. 2020 年 3 月 25 日 18:55 | #38

    An interesting discussion is definitely worth comment. I do think that you ought to publish more on this issue, it may not be a taboo subject but usually people don’t talk about these subjects. To the next! Kind regards!

  39. 2020 年 3 月 26 日 04:23 | #39

    Aw, this was a very good post. Finding the time and actual effort to create a top notch article… but what can I say… I procrastinate a lot and never manage to get nearly anything done.

  40. 2020 年 3 月 26 日 08:48 | #40

    I blog often and I really appreciate your information. This article has truly peaked my interest. I’m going to book mark your site and keep checking for new details about once per week. I opted in for your RSS feed as well.

  41. 2020 年 3 月 27 日 03:20 | #41

    MetroClick specializes in building completely interactive products like Photo Booth for rental or sale, Touch Screen Kiosks, Large Touch Screen Displays , Monitors, Digital Signages and experiences. With our own hardware production facility and in-house software development teams, we are able to achieve the highest level of customization and versatility for Photo Booths, Touch Screen Kiosks, Touch Screen Monitors and Digital Signage. Visit MetroClick in NYC at http://www.metroclick.com/ or , 121 Varick St, New York, NY 10013, +1 646-843-0888.

  42. 2020 年 3 月 28 日 13:03 | #42

    Youre so trendy! I don’t suppose Ive check out anything like this prior to. So wonderful to locate somebody with some original thoughts on this subject. realy thank you for beginning this up. this web site is something that is needed on the web, somebody with a little originality. helpful task for bringing something brand-new to the internet!

  43. 2020 年 3 月 29 日 03:13 | #43

    Greetings! Very useful advice within this article! It’s the little changes that produce the most significant changes. Many thanks for sharing!

  44. 2020 年 3 月 29 日 17:55 | #44

    Sapid Agency is a Search Engine Optimization company in New York City that provides SEO Services. Their proprietary SEO strategies help struggling websites and aspiring business owners to rank their websites higher in multiple search engines like Google , Yahoo and Bing. They provide local and gmb map ranking for businesses in NYC and many other local areas. Find more at https://www.sapidagency.com/ @ 145 E 57TH NEW YORK, NY 10022, USA, +1 971 341 5608 USA

  45. 2020 年 3 月 30 日 09:00 | #45

    Would certainly you be intrigued in exchanging web links?

  46. 2020 年 3 月 30 日 10:06 | #46

    That is a very good tip especially to those new to the blogosphere. Simple but very accurate information… Thanks for sharing this one. A must read post!

  47. 2020 年 4 月 1 日 00:06 | #47

    Free clothes delivery. Limited to 3 hours

  48. 2020 年 4 月 2 日 14:46 | #48

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

  49. 2020 年 4 月 3 日 12:18 | #49

    You’ve made some decent points there. I looked on the web to learn more about the issue and found most people will go along with your views on this website.

  50. 2020 年 4 月 5 日 05:12 | #50

    Galerimizdeki her seçkin Konya escortlari benzersizdir ve her karsilasmayi özel hale getirmek için çalisiyoruz , ancak biraz daha spesifik bir sey istiyorsaniz, bir noktaya kadar mecbur kaliyoruz.

コメントページ
1 2 3 205 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
  131. 2020 年 9 月 21 日 06:35 | #131