ホーム > 今日のテストコード > 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 月 15 日 02:36 | #1

    Very nice blog post. I absolutely love this website. Continue the good work!

  2. 2020 年 8 月 15 日 02:43 | #2

    Can I simply just say what a relief to find someone that genuinely understands what they are discussing online. You certainly understand how to bring a problem to light and make it important. More people have to check this out and understand this side of your story. I can’t believe you’re not more popular since you certainly have the gift.

  3. 2020 年 8 月 15 日 02:49 | #3

    I need to to thank you for this wonderful read!! I absolutely enjoyed every bit of it. I have you saved as a favorite to check out new things you post…

  4. 2020 年 8 月 15 日 02:58 | #4

    This is a topic that is near to my heart… Many thanks! Where are your contact details though?

  5. 2020 年 8 月 15 日 03:00 | #5

    You are so awesome! I don’t think I have read through a single thing like this before. So great to find someone with original thoughts on this topic. Really.. thank you for starting this up. This website is something that is required on the internet, someone with a bit of originality!

  6. 2020 年 8 月 15 日 03:12 | #6

    what would happen if a girl took cialis https://wisig.org/

  7. 2020 年 8 月 15 日 03:19 | #7

    You’re so interesting! I don’t suppose I’ve truly read anything like that before. So wonderful to find another person with original thoughts on this subject matter. Seriously.. thank you for starting this up. This site is one thing that is required on the internet, someone with a little originality!

  8. 2020 年 8 月 15 日 03:24 | #8

    Everything is very open with a very clear explanation of the issues. It was truly informative. Your site is very helpful. Many thanks for sharing!

  9. 2020 年 8 月 15 日 03:27 | #9

    This is a topic that is near to my heart… Take care! Where are your contact details though?

  10. 2020 年 8 月 15 日 03:35 | #10

    An outstanding share! I’ve just forwarded this onto a colleague who had been doing a little research on this. And he in fact bought me breakfast because I found it for him… lol. So let me reword this…. Thank YOU for the meal!! But yeah, thanx for spending some time to discuss this issue here on your internet site.

  11. 2020 年 8 月 15 日 04:15 | #11

    I blog often and I genuinely thank you for your content. This article has really peaked my interest. I will bookmark your website and keep checking for new details about once a week. I opted in for your Feed as well.

  12. 2020 年 8 月 15 日 04:16 | #12

    That is a great tip especially to those new to the blogosphere. Short but very accurate info… Many thanks for sharing this one. A must read article!

  13. 2020 年 8 月 15 日 04:19 | #13

    This is a great tip especially to those new to the blogosphere. Short but very precise information… Thanks for sharing this one. A must read post!

  14. 2020 年 8 月 15 日 04:26 | #14

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

  15. 2020 年 8 月 15 日 04:53 | #15

    Great article. I will be experiencing a few of these issues as well..

  16. 2020 年 8 月 15 日 04:53 | #16

    Your style is very unique compared to other folks I have read stuff from. Many thanks for posting when you’ve got the opportunity, Guess I’ll just bookmark this blog.

  17. 2020 年 8 月 15 日 05:36 | #17

    This blog was… how do you say it? Relevant!! Finally I’ve found something that helped me. Thanks!

  18. 2020 年 8 月 15 日 09:41 | #18

    where can i buy cialis http://cialisoni.com/

  19. 2020 年 8 月 15 日 12:12 | #19

    It’s hard to find experienced people in this particular subject, however, you sound like you know what you’re talking about! Thanks

  20. 2020 年 8 月 15 日 12:32 | #20

    Hello, I do think your blog could be having browser compatibility problems. Whenever I look at your website in Safari, it looks fine but when opening in Internet Explorer, it’s got some overlapping issues. I simply wanted to give you a quick heads up! Other than that, wonderful blog!

  21. 2020 年 8 月 15 日 12:36 | #21

    You’re so awesome! I don’t believe I’ve read something like this before. So nice to find another person with some original thoughts on this topic. Seriously.. thanks for starting this up. This site is one thing that is needed on the internet, someone with some originality!

  22. 2020 年 8 月 15 日 12:40 | #22

    There’s definately a lot to find out about this subject. I like all the points you have made.

  23. 2020 年 8 月 15 日 12:53 | #23

    It’s nearly impossible to find well-informed people in this particular subject, but you sound like you know what you’re talking about! Thanks

  24. 2020 年 8 月 15 日 12:54 | #24

    I was extremely pleased to discover this web site. I want to to thank you for ones time for this fantastic read!! I definitely savored every part of it and i also have you bookmarked to look at new things in your web site.

  25. 2020 年 8 月 15 日 13:09 | #25

    After looking into a few of the blog articles on your website, I seriously appreciate your way of writing a blog. I saved it to my bookmark website list and will be checking back in the near future. Please visit my web site as well and tell me what you think.

  26. 2020 年 8 月 15 日 13:25 | #26

    Hi there! I just want to offer you a huge thumbs up for your excellent information you’ve got here on this post. I’ll be returning to your website for more soon.

  27. 2020 年 8 月 15 日 13:27 | #27

    Very good info. Lucky me I discovered your blog by chance (stumbleupon). I’ve saved it for later!

  28. 2020 年 8 月 15 日 13:28 | #28

    Excellent article. I certainly love this website. Stick with it!

  29. 2020 年 8 月 15 日 14:16 | #29

    You ought to take part in a contest for one of the best sites on the web. I am going to recommend this web site!

  30. 2020 年 8 月 15 日 14:17 | #30

    Having read this I believed it was rather enlightening. I appreciate you taking the time and effort to put this article together. I once again find myself spending way too much time both reading and leaving comments. But so what, it was still worth it!

  31. 2020 年 8 月 15 日 14:21 | #31

    Excellent article. I definitely love this website. Keep writing!

  32. 2020 年 8 月 15 日 14:32 | #32

    This is a topic that’s close to my heart… Thank you! Where are your contact details though?

  33. 2020 年 8 月 15 日 14:47 | #33

    Hi there, I think your site could be having browser compatibility issues. Whenever I take a look at your blog in Safari, it looks fine however, when opening in I.E., it has some overlapping issues. I merely wanted to provide you with a quick heads up! Aside from that, wonderful website!

  34. 2020 年 8 月 15 日 14:51 | #34

    I could not refrain from commenting. Well written!

  35. 2020 年 8 月 15 日 15:20 | #35

    I’m very happy to find this website. I wanted to thank you for ones time for this wonderful read!! I definitely enjoyed every little bit of it and i also have you saved to fav to look at new stuff in your web site.

  36. 2020 年 8 月 15 日 16:06 | #36

    Hi, I do believe your website could possibly be having web browser compatibility issues. When I look at your site in Safari, it looks fine but when opening in IE, it’s got some overlapping issues. I merely wanted to provide you with a quick heads up! Besides that, excellent site!

  37. 2020 年 8 月 15 日 16:26 | #37

    When I initially left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and now each time a comment is added I recieve 4 emails with the same comment. There has to be a means you are able to remove me from that service? Kudos!

  38. 2020 年 8 月 15 日 16:29 | #38

    I love it when folks get together and share thoughts. Great website, stick with it!

  39. 2020 年 8 月 15 日 16:35 | #39

    Great post! We will be linking to this particularly great content on our site. Keep up the good writing.

  40. 2020 年 8 月 15 日 16:38 | #40

    After I initially left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get four emails with the exact same comment. Perhaps there is an easy method you can remove me from that service? Thank you!

  41. 2020 年 8 月 15 日 16:41 | #41

    I’m more than happy to find this site. I wanted to thank you for your time for this wonderful read!! I definitely liked every bit of it and i also have you saved to fav to see new things in your blog.

  42. 2020 年 8 月 15 日 16:46 | #42

    Very good information. Lucky me I found your blog by chance (stumbleupon). I have saved as a favorite for later!

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

    The very next time I read a blog, Hopefully it does not fail me as much as this particular one. After all, I know it was my choice to read through, but I truly believed you would probably have something useful to talk about. All I hear is a bunch of moaning about something you could possibly fix if you weren’t too busy searching for attention.

  44. 2020 年 8 月 15 日 16:57 | #44

    latisse eyelash growth https://carepro1st.com/

  45. 2020 年 8 月 15 日 17:16 | #45

    I would like to thank you for the efforts you have put in writing this site. I’m hoping to view the same high-grade blog posts by you in the future as well. In fact, your creative writing abilities has motivated me to get my very own website now ;)

  46. 2020 年 8 月 15 日 17:18 | #46

    There is certainly a great deal to find out about this subject. I really like all of the points you made.

  47. 2020 年 8 月 15 日 17:21 | #47

    I’m excited to uncover this page. I wanted to thank you for ones time just for this wonderful read!! I definitely savored every little bit of it and I have you book-marked to see new stuff on your web site.

  48. 2020 年 8 月 15 日 17:24 | #48

    Oh my goodness! Impressive article dude! Thanks, However I am going through difficulties with your RSS. I don’t know the reason why I cannot join it. Is there anybody else getting identical RSS issues? Anyone who knows the answer will you kindly respond? Thanx!!

  49. 2020 年 8 月 15 日 18:10 | #49

    Hello there! This blog post couldn’t be written much better! Reading through this article reminds me of my previous roommate! He always kept preaching about this. I will forward this article to him. Pretty sure he will have a great read. Many thanks for sharing!

  50. 2020 年 8 月 15 日 18:12 | #50

    May I just say what a relief to discover someone that genuinely knows what they’re discussing over the internet. You certainly know how to bring a problem to light and make it important. More people need to check this out and understand this side of the story. I was surprised you are not more popular since you certainly possess the gift.

コメントページ
1 139 140 141 142 143 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