[前][次][番号順一覧][スレッド一覧]

ruby-changes:52764

From: ko1 <ko1@a...>
Date: Tue, 9 Oct 2018 15:18:33 +0900 (JST)
Subject: [ruby-changes:52764] ko1:r64976 (trunk): use `should include`.

ko1	2018-10-09 15:18:28 +0900 (Tue, 09 Oct 2018)

  New Revision: 64976

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64976

  Log:
    use `should include`.

  Modified files:
    trunk/spec/ruby/command_line/dash_v_spec.rb
Index: spec/ruby/command_line/dash_v_spec.rb
===================================================================
--- spec/ruby/command_line/dash_v_spec.rb	(revision 64975)
+++ spec/ruby/command_line/dash_v_spec.rb	(revision 64976)
@@ -6,7 +6,7 @@ describe "The -v command line option" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/command_line/dash_v_spec.rb#L6
 
   describe "when used alone" do
     it "prints version and ends" do
-      ruby_exe(nil, args: '-v').include?(RUBY_DESCRIPTION).should == true
+      ruby_exe(nil, args: '-v').should include(RUBY_DESCRIPTION)
     end
   end
 end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]