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

    erectile dysfunction medicines cialis cialis https://wisig.org/

  2. 2020 年 8 月 4 日 16:22 | #2

    That is a great tip especially to those fresh to the blogosphere. Simple but very precise info… Thank you for sharing this one. A must read post!

  3. 2020 年 8 月 4 日 16:53 | #3

    I blog often and I really appreciate your information. Your article has truly peaked my interest. I am going to bookmark your website and keep checking for new information about once per week. I subscribed to your RSS feed as well.

  4. 2020 年 8 月 4 日 17:05 | #4

    After looking into a few of the blog articles on your site, I honestly like your way of writing a blog. I bookmarked it to my bookmark website list and will be checking back in the near future. Take a look at my web site as well and let me know how you feel.

  5. 2020 年 8 月 4 日 17:06 | #5

    I’m pretty pleased to discover this great site. I want to to thank you for your time for this particularly fantastic read!! I definitely loved every bit of it and I have you saved to fav to check out new things on your web site.

  6. 2020 年 8 月 4 日 17:46 | #6

    Hi there! This article could not be written any better! Looking at this article reminds me of my previous roommate! He always kept preaching about this. I most certainly will forward this information to him. Pretty sure he’s going to have a good read. Thank you for sharing!

  7. 2020 年 8 月 4 日 17:54 | #7

    Excellent article. I definitely appreciate this website. Keep it up!

  8. 2020 年 8 月 4 日 18:12 | #8

    I absolutely love your blog.. Excellent colors & theme. Did you develop this amazing site yourself? Please reply back as I’m looking to create my own personal website and want to learn where you got this from or what the theme is named. Appreciate it!

  9. 2020 年 8 月 4 日 18:17 | #9

    Howdy! This article could not be written much better! Reading through this article reminds me of my previous roommate! He continually kept talking about this. I most certainly will forward this information to him. Fairly certain he will have a great read. Many thanks for sharing!

  10. 2020 年 8 月 4 日 19:12 | #10

    Everything is very open with a precise clarification of the challenges. It was truly informative. Your website is useful. Thanks for sharing!

  11. 2020 年 8 月 4 日 19:45 | #11

    I’d like to thank you for the efforts you’ve put in penning this website. I’m hoping to check out the same high-grade blog posts from you later on as well. In fact, your creative writing abilities has encouraged me to get my own website now ;)

  12. 2020 年 8 月 4 日 19:57 | #12

    Great web site you have here.. It’s hard to find good quality writing like yours nowadays. I truly appreciate people like you! Take care!!

  13. 2020 年 8 月 4 日 19:58 | #13

    Great information. Lucky me I discovered your website by accident (stumbleupon). I’ve bookmarked it for later!

  14. 2020 年 8 月 4 日 20:37 | #14

    This is the perfect webpage for everyone who wishes to find out about this topic. You know so much its almost tough to argue with you (not that I personally would want to…HaHa). You certainly put a fresh spin on a topic which has been discussed for a long time. Excellent stuff, just excellent!

  15. 2020 年 8 月 4 日 20:43 | #15

    Greetings! Very helpful advice within this article! It’s the little changes which will make the largest changes. Thanks for sharing!

  16. 2020 年 8 月 4 日 21:07 | #16

    I really like it when people come together and share ideas. Great blog, continue the good work!

  17. 2020 年 8 月 4 日 21:10 | #17

    Oh my goodness! Impressive article dude! Thank you so much, However I am having troubles with your RSS. I don’t understand the reason why I cannot join it. Is there anybody else having the same RSS problems? Anyone that knows the answer will you kindly respond? Thanx!!

  18. 2020 年 8 月 5 日 01:07 | #18

    bookmarked!!, I like your site!

  19. 2020 年 8 月 5 日 01:43 | #19

    Howdy! I simply wish to give you a huge thumbs up for the great information you have here on this post. I will be returning to your site for more soon.

  20. 2020 年 8 月 5 日 01:44 | #20

    A motivating discussion is worth comment. I do believe that you ought to write more on this issue, it may not be a taboo matter but generally people don’t speak about these issues. To the next! All the best!!

  21. 2020 年 8 月 5 日 02:34 | #21

    I love it when people get together and share thoughts. Great site, stick with it!

  22. 2020 年 8 月 5 日 02:40 | #22

    It’s hard to come by knowledgeable people on this subject, but you seem like you know what you’re talking about! Thanks

  23. 2020 年 8 月 5 日 02:52 | #23

    You ought to take part in a contest for one of the most useful websites on the net. I’m going to highly recommend this website!

  24. Didel Andreesc
    2020 年 8 月 5 日 02:55 | #24

    Thanks for taking the time to post this amazing article ! Keep it up with the good work. see more of this

  25. 2020 年 8 月 5 日 03:07 | #25

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

  26. 2020 年 8 月 5 日 09:11 | #26

    Thanks for your entire work on this site. My mum really loves engaging in research and it’s really easy to see why. My spouse and i notice all concerning the powerful means you make insightful techniques through the blog and in addition encourage participation from people on that topic then my daughter is truly studying so much. Enjoy the remaining portion of the new year. Your doing a useful job.

  27. 2020 年 8 月 5 日 11:46 | #27

    bimatoprost ophthalmic solution cvs https://www.jueriy.com/

  28. 2020 年 8 月 5 日 13:53 | #28

    You’ve made some good points there. I looked on the internet to find out more about the issue and found most people will go along with your views on this site.

  29. 2020 年 8 月 5 日 14:37 | #29

    Having read this I thought it was really informative. I appreciate you finding the time and energy to put this information together. I once again find myself personally spending a significant amount of time both reading and commenting. But so what, it was still worthwhile!

  30. 2020 年 8 月 5 日 15:26 | #30

    I was able to find good information from your articles.

  31. 2020 年 8 月 5 日 15:32 | #31

    Nice post. I learn something totally new and challenging on websites I stumbleupon on a daily basis. It will always be interesting to read articles from other writers and use something from other websites.

  32. 2020 年 8 月 5 日 15:47 | #32

    I blog frequently and I truly thank you for your content. This article has really peaked my interest. I am going to bookmark your website and keep checking for new information about once a week. I opted in for your Feed too.

  33. 2020 年 8 月 5 日 15:57 | #33

    Good write-up. I certainly love this website. Continue the good work!

  34. 2020 年 8 月 5 日 17:30 | #34

    Hello there! This blog post couldn’t be written much better! Looking through this post reminds me of my previous roommate! He continually kept talking about this. I most certainly will send this article to him. Fairly certain he will have a good read. I appreciate you for sharing!

  35. 2020 年 8 月 5 日 19:10 | #35

    It’s hard to find educated people about this subject, but you seem like you know what you’re talking about! Thanks

  36. 2020 年 8 月 5 日 19:17 | #36

    It’s difficult to find educated people about this subject, but you sound like you know what you’re talking about! Thanks

  37. 2020 年 8 月 5 日 20:12 | #37

    This page truly has all the info I wanted about this subject and didn’t know who to ask.

  38. 2020 年 8 月 5 日 20:39 | #38

    Your style is unique compared to other folks I’ve read stuff from. Thanks for posting when you have the opportunity, Guess I will just bookmark this web site.

  39. 2020 年 8 月 5 日 20:52 | #39

    Hi there, I think your site could be having browser compatibility issues. Whenever I look at your website in Safari, it looks fine but when opening in Internet Explorer, it’s got some overlapping issues. I just wanted to give you a quick heads up! Besides that, fantastic blog!

  40. 2020 年 8 月 5 日 20:55 | #40

    Great post. I am dealing with many of these issues as well..

  41. 2020 年 8 月 5 日 21:45 | #41

    May I just say what a comfort to find someone who really knows what they are talking about online. You actually understand how to bring a problem to light and make it important. A lot more people really need to look at this and understand this side of your story. I was surprised you are not more popular given that you definitely possess the gift.

  42. 2020 年 8 月 5 日 21:54 | #42

    You are so awesome! I don’t think I have read anything like this before. So good to discover another person with genuine thoughts on this subject matter. Really.. thanks for starting this up. This web site is one thing that’s needed on the web, someone with a little originality!

  43. 2020 年 8 月 5 日 22:04 | #43

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

  44. 2020 年 8 月 5 日 22:17 | #44

    Your style is really unique compared to other people I’ve read stuff from. Many thanks for posting when you’ve got the opportunity, Guess I’ll just book mark this site.

  45. 2020 年 8 月 5 日 23:26 | #45

    Remarkable! Its in fact remarkable article, I have got much clear idea concerning from
    this article.

  46. 2020 年 8 月 5 日 23:39 | #46

    Your style is so unique compared to other people I have read stuff from. Many thanks for posting when you have the opportunity, Guess I’ll just bookmark this site.

  47. 2020 年 8 月 6 日 00:05 | #47

    You should take part in a contest for one of the finest sites on the web. I am going to recommend this blog!

  48. 2020 年 8 月 6 日 00:17 | #48

    I wanted to thank you for this excellent read!! I certainly loved every little bit of it. I have you bookmarked to look at new things you post…

  49. 2020 年 8 月 6 日 00:19 | #49

    I needed to thank you for this very good read!! I certainly enjoyed every bit of it. I have you book-marked to look at new things you post…

  50. 2020 年 8 月 6 日 01:10 | #50

    Aw, this was an exceptionally nice post. Taking a few minutes and actual effort to make a really good article… but what can I say… I put things off a lot and never seem to get nearly anything done.

コメントページ
1 130 131 132 133 134 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